Image sensing and image processing apparatuses

ABSTRACT

Images sensed through object lenses  100 R and  100 L, having zoom lenses, with image sensors  102 R and  102 L are processed by image signal processors  104 R and  104 L, and an image of an object in each of the sensed images is separated from a background image on the basis of the processed image signals. The separated image signals representing the image of the object enter the image processor  220 , where a three-dimensional shape of the object is extracted on the basis of parameters used upon sensing the images. The parameters are automatically adjusted so that images of the object fall within the both image sensing areas of the image sensors  102 R and  102 L and that they fall within the both focal depths of the image sensors  102 R and  102 L.

BACKGROUND OF THE INVENTION

[0001] The present invention relates to an image sensing apparatus capable of determining an optimum image sensing conditions for obtaining a three-dimensional image. Further, the present invention also relates to an image processing apparatus which edits a three-dimensional image in accordance with the image sensing conditions.

[0002] Conventionally, there is a technique, such as the one published on the Journal of Television Society, Vol. 45, No. 4 (1991), pp. 453-460, to obtain a three-dimensional shape of an object. There are basically two methods, a passive method and an active method, for obtaining the three-dimensional shape of the object, as described in the above article.

[0003] A typical method as the passive method is a stereo imaging method which performs triangulation on an object by using two cameras. In this method, corresponding points of a part of an object are searched in both the right and left images, and the position of the object in the three dimensional space is measured on the basis of the difference between the positions of the searched corresponding points in the right and left images.

[0004] Further, there are a method using a range finder and a slit projection method as the typical active method. In the former method, distance to the object is obtained by measuring time since emitting light toward the object until receiving the light reflected by the object. In the latter method, a three-dimensional shape is measured on the basis of deformation of a shape of a light pattern, whose original pattern is a slit shape, projected on an object.

[0005] However, the main purpose of the aforesaid stereo imaging method is to calculate information on distance between fixed positions where the cameras are set and the object, and not to measure the entire object. Consequently, a three-dimensional shape can not be obtained in high precision.

[0006] Further, an apparatus adopting the active method is large, since it has to emit a laser beam, for example, to an object, thereby manufacturing cost is high.

[0007] Generation of a three-dimensional shape of the object on the basis of two-dimensional images requires a plurality of images sensed at a plurality of image sensing points. However, since the object has a three-dimensional shape, image sensing parameters (e.g., depth of focus, angle of view) which are suited to the object and each image sensing point needs to be set for performing image sensing from a plurality of image sensing points.

[0008] However, in any of the aforesaid methods, cameras are not controlled flexibly enough to respond to a dynamic image sensing method, such as sensing an object while moving around it.

[0009] Therefore, the present invention is aimed at solving the aforesaid problem, i.e., to realize a dynamic image sensing method in which an object is sensed at a plurality of image sensing points around it.

[0010] Meanwhile, an image of an object which is seen from an arbitrary viewpoint is sometimes reproduced on a two-dimensional display on the basis of obtained three-dimensional data of the object.

[0011] For example, it is possible to input images sensed by an electronic camera into a personal computer, or the like, and edit them. In this case, a scene is divided into a plurality of partial scenes, and then is sensed with an electronic camera. The images corresponding to the plurality of partial scenes is projected with having some overlapping portions. More specifically, the sensed images are inputted into a personal computer, then put together by using an application software so that the overlapping portions are projected overlapped each other. Thereby, it is possible to obtain an image of far wider angle of view than that of an image obtained in a single image sensing operation by the electronic camera.

[0012] However, the main purpose of the aforesaid stereo imaging method is to calculate information on distance between a fixed position where the camera is set and the object, and not to measure the three-dimensional shape of the entire object.

[0013] Further, since a laser beam is emitted to the object in the active method, it is troublesome to use an apparatus adopting the active method. Furthermore, in any conventional method, cameras are not controlled flexibly enough to respond to a dynamic image sensing method, such as sensing an object while moving around it.

[0014] In addition, two view finders are necessary in the conventional passive method using two cameras, and it is also necessary to perform image sensing operation as seeing to compare images on the two view finders, which increases manufacturing cost and provides bad operability. For instance, there are problems in which it takes time to perform framing or it becomes impossible to obtain a three-dimensional shape because of too small overlapping area.

[0015] Further, an image generally dealt with in an office is often printed out on paper eventually, and types of images to be used may be a natural image and a wire image which represents an object with outlines only. In the conventional methods, however, to display an image of an object faithfully on a two-dimensional display on the basis of obtained three-dimensional shape data of the object is the main interest, thus those methods are not used in offices.

SUMMARY OF THE INVENTION

[0016] The present invention has been made in consideration of aforesaid situation, and has as its object to provide an image sensing apparatus capable of placing an object, whose three-dimensional shape is to be generated, under the optimum image sensing conditions upon sensing the object from a plurality of image sensing points without bothering an operator.

[0017] It is another object of the present invention to provide an image sensing apparatus capable of setting sensing parameters for an optical system so that an entire object falls within the optimum depth of focus at image sensing points.

[0018] Further object of the present invention is to provide an image sensing apparatus which senses an image of the object with the optimum zoom ratio at each of a plurality of image sensing points.

[0019] Yet further object of the present invention is to provide an image sensing apparatus capable of notifying an operator of achievement of the optimum image sensing conditions.

[0020] Yet further object of the present invention is to provide an image sensing apparatus capable of storing the optimum image sensing conditions.

[0021] Yet further object of the present invention is to provide an image sensing apparatus which determines whether the optimum image sensing conditions are achieved or not by judging whether there is a predetermined pattern in an image sensing field.

[0022] Yet further object of the present invention is to provide an image sensing apparatus capable of re-sensing an image.

[0023] Yet further object of the present invention is to provide an image sensing apparatus whose operability is greatly improved by informing an operator when he/she is to press a shutter.

[0024] Yet further object of the present invention is to provide an image sensing apparatus capable of instinctively knowing a displacing speed of a camera upon inputting an image, thereby improving operability as well as quality of an input image.

[0025] Yet further object of the present invention is to provide a single-eye type image sensing apparatus capable of inputting an image of high quality thereby obtaining a three-dimensional shape in high precision and reliability.

[0026] Yet further object of the present invention is to provide an image sensing apparatus capable of always sensing characteristic points to be used for posture detection within a field of view, thereby preventing failing an image sensing operation.

[0027] Yet further object of the present invention is to provide an image processing apparatus capable of generating an image of an object which is seen from an arbitrary viewpoint on the basis of three-dimensional shape information on images sensed at a plurality of image sensing points, and capable of forming a file.

[0028] Yet further object of the present invention is to provide an image processing apparatus capable of generating an image of an object which is seen from an arbitrary viewpoint on the basis of three-dimensional shape information on images sensed at a plurality of image sensing points, and capable of forming a file, further editing three-dimensional image by synthesizing the file with other file.

[0029] Yet further object of the present invention is to provide an image processing apparatus which generates a three-dimensional image from images sensed under the optimum image sensing conditions.

[0030] Yet further object of the present invention is to provide an image processing apparatus which converts three-dimensional shape data, obtained based on sensed images, into a two-dimensional image of an object which is seen from an arbitrary viewpoint.

[0031] Yet further object of the present invention is to provide an image processing apparatus which combines a document file and a three-dimensional image.

[0032] Yet further object of the present invention is to provide an image processing apparatus which stores information on background of an object.

[0033] Yet further object of the present invention is to provide an image processing apparatus which combines an image data file with other file, and has a three-dimensionally displaying function.

[0034] Yet further object of the present invention is to provide an image processing apparatus in which three-dimensional shape data of an object is calculated with a software installed in a computer, the three-dimensional shape data of the object is converted into an image of the object seen from an arbitrary viewpoint, and a file of the image data is combined with other file.

[0035] Yet further object of the present invention is to provide an image sensing apparatus capable of detecting overlapping areas in a plurality of images sensed at a plurality of image sensing points.

[0036] Yet further object of the present invention is to provide an image sensing apparatus which displays overlapping portions of images sensed at a plurality of image sensing points in a style different from a style for displaying non-overlapping portions.

[0037] Yet further object of the present invention is to provide an image processing apparatus capable of re-sensing an image.

[0038] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0040]FIG. 1 is an explanatory view for explaining modes set in the image processing apparatuses according to first and second embodiments;

[0041]FIG. 2 is an overall view illustrating a configuration of a three-dimensional shape recognition apparatus according to a first embodiment of the present invention;

[0042]FIG. 3 is a block diagram illustrating a configuration of a three dimensional shape information extracting apparatus according to the first embodiment;

[0043]FIG. 4 is a block diagram illustrating a configuration of a system controller shown in FIG. 3;

[0044]FIGS. 5A, 5B are a flowchart showing an operation according to the first embodiment;

[0045]FIG. 6 is an explanatory view for explaining in-focus point adjustment;

[0046]FIGS. 7A to 7B are explanatory views showing zoom ratio adjustment;

[0047]FIG. 8 is a graph for explaining the zoom ratio adjustment;

[0048]FIG. 9 is an overall view illustrating a brief configuration of a three-dimensional shape recognition apparatus according to a first modification of the first embodiment;

[0049]FIG. 10 is a block diagram illustrating a configuration of a three dimensional shape information extracting apparatus according to the first modification;

[0050]FIG. 11 is a flowchart showing an operation according to the first modification;

[0051]FIG. 12 is an explanatory view showing a principle of detecting a posture according to the first modification;

[0052]FIG. 13 is a block diagram illustrating a configuration of a three dimensional shape information extracting apparatus of a second modification of the first embodiment;

[0053]FIG. 14 is a flowchart showing an operation according to the second modification;

[0054]FIG. 15 is a brief view of a three-dimensional shape extraction apparatus and its peripheral equipment according to the second embodiment;

[0055]FIG. 16 shows types of images of an object according to the second embodiment;

[0056]FIGS. 17A, 17B are a block diagram illustrating a detailed configuration of an image sensing head and an image processing unit;

[0057]FIG. 18 is a block diagram illustrating a configuration of a system controller;

[0058]FIG. 19 shows images of an object seen from variety of viewpoints;

[0059]FIG. 20 is a diagram showing a flow of control by the apparatus according to the second embodiment;

[0060]FIG. 21 is an explanatory view for explaining a principle of detecting an overlapping portion according to the second embodiment;

[0061]FIG. 22 is an example of an image displayed on a finder according to the second embodiment;

[0062]FIG. 23 is an table showing a form of recording three-dimensional images on a recorder according to the second embodiment;

[0063]FIG. 24 shows an operation in a panoramic image sensing according to the second embodiment;

[0064]FIG. 25 shows an operation in a panoramic image sensing according to the second embodiment;

[0065]FIG. 26 shows a brief flow for calculating distance information from stereo images according to the second embodiment;

[0066]FIG. 27 is an explanatory view for explaining a principle of a template matching according to the second embodiment;

[0067]FIG. 28 shows a brief flow for combining the distance information according to the second embodiment;

[0068]FIG. 29 is an explanatory view for briefly explaining an interpolation method according to the second embodiment;

[0069]FIGS. 30A and 30B are explanatory view for showing a method of mapping the distance information to integrated coordinate systems according to the second embodiment;

[0070]FIG. 31 shows a brief coordinate system of an image sensing system according to the second embodiment;

[0071]FIG. 32 shows a brief coordinate system when the image sensing system is rotated according to the second embodiment;

[0072]FIG. 33 shows a brief flow of combining a document file, image information and the distance information according to the second embodiment;

[0073]FIG. 34 is an explanatory view showing a flow that image information is fitted to a model image according to the second embodiment;

[0074]FIG. 35 is an explanatory view showing that an image information file is combined with the document file according to the second embodiment;

[0075]FIG. 36 is a brief overall view of an image processing system according to a first modification of the second embodiment;

[0076]FIG. 37 is a block diagram illustrating a configuration of a three-dimensional shape extraction apparatus 2100 according to the first modification of the second embodiment;

[0077]FIG. 38 is a flowchart showing a processing by the three-dimensional shape extraction apparatus according to the first modification of the second embodiment;

[0078]FIG. 39 is a block diagram illustrating a configuration of a three-dimensional shape extraction apparatus according to the second modification of the second embodiment;

[0079]FIG. 40 is a flowchart showing a processing by the three-dimensional shape extraction apparatus according to the second modification of the second embodiment; and

[0080]FIG. 41 is an example of an image seen on a finder according to a third modification of the second embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0081] Preferred embodiments of the present invention will be described in detail in accordance with the accompanying drawings.

[0082] The present invention discloses an image processing apparatus which obtains images of an object sensed at a plurality of image sensing points, generates a three-dimensional image from these images and displays it. An image processing apparatus described in a first embodiment is characterized by three-dimensional shape recognition, especially by that the optimum image sensing parameters are decided upon to sense the images of the object. As for an image processing apparatus described in a second embodiment, it is characterized by correcting a three-dimensional image on the basis of predetermined image sensing parameters or editing a three-dimensional image.

[0083]FIG. 1 is an explanatory view for explaining modes set in the image processing apparatuses according to the first and second embodiments. In an image sensing parameter determination mode, the optimum image sensing parameters are determined. In a three-dimensional shape information extraction mode, three-dimensional shape information of an object is extracted from images of the object sensed at a plurality of image sensing points by using image sensing parameters determined in the image sensing parameter determination mode. In a display and editing mode, a three-dimensional image is configured from three-dimensional shape information, displayed and further edited. In a panoramic image sensing mode, a panoramic image is generated by synthesizing images sensed at a plurality of image sensing points by using a function, originally performed for extracting three-dimensional shape information, for sensing a plurality of images from a plurality of image sensing points. Further, a three-dimensional image input mode is furnished.

[0084] <First Embodiment>ΛDetermination of Image Sensing Parameters

[0085] Overall Configuration

[0086]FIG. 2 is an overall view illustrating a configuration of a three-dimensional shape recognition apparatus according to a first embodiment of the present invention. It is necessary to decide the most suitable image sensing parameters for recognizing three-dimensional shape information from images. The most suitable image sensing parameters make it easy to recognize, in high precision, three-dimensional shape information of an object. The three-dimensional shape recognition apparatus shown in FIG. 2 adopts a method of determining image sensing parameters of the present invention in order to realize reliable three-dimensional shape recognition in high precision. More specifically, in the apparatus shown in FIG. 2, after the most suitable image sensing parameters are determined, an optical system is set in accordance with the image sensing parameters, then the apparatus senses images of the object and recognizes three-dimensional shape information of the object of interest.

[0087] In FIG. 2, reference numeral 1 denotes an apparatus (called “three-dimensional shape information extracting apparatus”, hereinafter) for extracting three-dimensional shape information of an object; and 2, an object whose three-dimensional shape information is to be extracted, and the object 2 becomes a subject of a camera for obtaining the three-dimensional shape information of the object by an image processing in the present invention. Further, reference numeral 3 denotes a stage set behind the object 2, and it constitutes a background of the object 2.

[0088] In the three dimensional shape information extracting apparatus 1, reference numeral 100R denotes a right object lens; and 100L, a left object lens. Further, reference numeral 200 denotes an illumination unit for illuminating the object 2 in accordance with an image sensing environment. The image sensing field of the right object lens 100R is denoted by reference numeral 10R, and the image sensing field of the left object lens 100L is denoted by reference numeral 10L. The three dimensional shape information extracting apparatus 1 is mounted on a vibration-type gyro (not shown), for example, and the position of the three dimensional shape information extracting apparatus 1 is detected by a posture detector 201 (refer to FIG. 3) which is also mounted on the vibration-type gyro.

[0089] The three dimensional shape information extracting apparatus 1 senses the object 2 while moving from the start position A₀ of the image sensing to the end position A_(n) of the image sensing. Further, position information and posture information of the three dimensional shape information extracting apparatus 1 at each image sensing point between A₀-A_(n) are calculated from signals obtained from the posture detector 2.

[0090]FIG. 3 is a block diagram illustrating a configuration of the three dimensional shape information extracting apparatus (referred to as “parameter extracting apparatus” hereinafter) 1.

[0091] In FIG. 3, reference numerals 100R and 100L denote the object lenses consisting of zoom lenses. Further, reference numerals 101R and 101L denote iris diaphragms; and 102R and 102L, image sensors and CCDs can be used as those. A/D converters 103R and 103L convert signals from the image sensors into digital signals. Image signal processors 104R and 104L convert the digital signals from the A/D converters 103R and 103L into image signals of a predetermined format (e.g., image signals in the YIQ system or image signals in the Lab system). Image separators 105R and 105L separate an image of the object 2 from an image of the background 3.

[0092] Zoom controllers 106R and 106L adjust focal lengths of the object (zoom) lenses 100R and 100L. Focus controllers 107R and 107L adjust focal points. Iris diaphragm controllers 108R and 108L adjust aperture diaphragm of the iris diaphragms 101R and 101L.

[0093] Reference numeral 201 denotes the posture detector which consists of a vibration-type gyro and so on, and it outputs signals indicating the position and posture of the camera. Reference numeral 210 denotes a system controller which controls the overall parameter extracting apparatus 1. The system controller 210, as shown in FIG. 4, consists of a microcomputer 900, memory 910 and an image processing section 920. Reference numeral 220 denotes an image processor which extracts three-dimensional information of the object on the basis of the image signals obtained from the image sensors 102R and 102L, as well as outputs data after combining the three-dimensional information extracted at each image sensing point and posture information at each image sensing point obtained by the posture detector 201. Reference numeral 250 denotes a recorder for recording an image.

[0094] A focusing state detector 270 detects a focusing state of the sensed image on the basis of the image of the object 2 and the image of the background 3 separated by the image separators 105R and 105L. An R-L difference discriminator 260 calculates the differences between the obtained right image sensing parameters and left image sensing parameters.

[0095] Furthermore, reference numeral 230 denotes a shutter; 280, an external interface for external input; and 240, a display, such as a LED.

[0096] Next, an operation of the parameter extracting apparatus 1 having the aforesaid configuration will be explained.

[0097] Images of the object 2 are inputted to the image sensors 102R and 102L through the object lenses 100R and 100L, and converted into electrical image signals. The obtained electrical image signals are converted from analog signals to digital signals by the A/D converters 103R and 103L and supplied to the image signal processors 104R and 104L.

[0098] The image signal processors 104R and 104L convert the digitized image signals of the object into luminance signals and color signals (image signals in the YIQ system or image signals in the Lab system as described above) of a proper format.

[0099] Next, the image separators 105R and 105L separates the image of the object whose three-dimensional shape information is the subject to measurement from the image of the background 3 in the sensed image signals on the basis of the signals obtained from the image signal processors 104R and 104L.

[0100] As an example of a separation method, first, sense an image of the background in advance and store the sensed image in the memory (FIG. 4). Then, place the object 2 to be measured in front of the background 3 and sense an image of the object 2. Thereafter, perform matching process and a differentiation process on the sensed image including the object 2 and the background 3 and the image of the background 3 which has been stored in the memory in advance, thereby separating the areas of the background 3. It should be noted that the separation method is not limited to the above, and it is possible to separated images on the basis of information on colors or texture in the image.

[0101] The separated image signals of the object 2 are inputted to the image processor 220, where three-dimensional shape extraction is performed on the basis of the image sensing parameters at the image sensing operation.

[0102] Next, an operational sequence of the system controller 210 of the parameter extracting apparatus 1 will be described with reference to a flowchart shown in FIGS. 5A, 5B.

[0103] In the flowchart shown in FIGS. 5A, 5B, processes from step S1 to step S9 relate to the “image sensing parameter determination mode”. In the “image sensing parameter determination mode”, the optimum image sensing parameters for each of n image sensing points, or A₀ to A_(n) shown in FIG. 2.

[0104] When a power switch is turned on, each unit shown in FIG. 3 starts operating. When the “image sensing parameter determination mode” is selected, the system controller 210 starts controlling at step S1. More specifically, the system controller 210 enables the iris diaphragm controllers 108R and 108L and the image sensors 102R and 102L so as to make them output image signals sensed through the lenses 100R and 100L, enables the A/D converters 103R and 103L so as to make them convert the image signals into digital image signals, and controls the image signal processors 104R and 104L to make them convert the digital image signals into image signals of the aforesaid predetermined format (includes luminance component, at least).

[0105] As the image signal processors 104R and 104L start outputting the image signals, the system controller 210 adjusts exposure at step S2.

[0106] Exposure Adjustment

[0107] The system controller 210 controls the image processing section 920 (refer to FIG. 4) to perform an integral processing on the image signals of the object 2 obtained from the image separators 105R and 105L, and calculates a luminance level of the image of the entire object 2. Further, the system controller 210 controls the iris diaphragm controllers 108R and 108L to set the iris diaphragms 101R and 101L to proper aperture diaphragms on the basis of the luminance level. At step S3, whether the luminance level obtained at step S2 is not high enough to extract three-dimensional shape information and any control of the iris diaphragms 101R and 101L will not result in obtaining a proper luminance level or not is determined. If it is determined that the proper level is not obtained, then the illumination unit 200 is turned on at step S4. Note, the intensity level of the illumination unit 200 may be changed on the basis of the luminance level calculated at step S2.

[0108] In-focus Point Adjustment (Step S5)

[0109] The system controller 210 adjusts the focal lengths at step S5 by using the right and left image signals which are set to a proper luminance level. The parameter extracting apparatus 1 shown in FIG. 3 has the focus controllers 107R and 107L, thus adjustment for focusing is unnecessary. Therefore, the in-focus point adjustment performed at step S5 is an adjustment of focus so that the entire image of the object is within the focal depths of the lenses 100R and 100L.

[0110] A principle of the in-focus point adjustment process performed at step S5 will be shown in FIG. 6.

[0111] First, the in-focus points of the lenses 100R and 100L are set at the upper part of the object 2, then set at the lower part of the object 2. The lower part of the object 2 can not be usually seen from the lenses 100R and 100L, therefore, the in-focus points of the lenses 100R and 100L are adjusted to the background 3 in practice at step S5.

[0112] Note, the focusing state in this process is detected by the focusing state detector 270. As for a detection method, a known method, such as detection of clarity of edges or detection of a blur from image signals, may be used.

[0113] The aforesaid focusing operation on the two parts, i.e., the upper and the lower parts of the object, are performed for each of the right and left lenses 100R and 100L, reference numerals X₁ and X₂ in FIG. 6 represent focuss to the upper and lower parts of the object 2 of either the right or left lens. The focusing state detector 270 outputs the values of X₁ and X₂ to the system controller 210. Then, the system controller 210 determines a focal length X with which the depth of focus is determined for the object 2 on the basis of the values, then outputs a control signal so as to obtain the focus distance X to the corresponding focus controller 107R or 107L. The distance X may be a middle length between X₁ and X₂, for example, $\begin{matrix} {X = \frac{X_{1} + X_{2}}{2}} & (1) \end{matrix}$

[0114] In practice, for each of the right and left lenses, $\begin{matrix} {X_{R} = \frac{X_{1R} + X_{2R}}{2}} & (2) \\ {X_{L} = \frac{X_{1L} + X_{2L}}{2}} & (3) \end{matrix}$

[0115] Alternatively, proper weights may be applied, and the equation (1) becomes, $\begin{matrix} {X = \frac{{m \cdot X_{1}} + {n \cdot X_{x}}}{2}} & (4) \end{matrix}$

[0116] The range in the X direction in which the entire object 2 is within the depth of focus of the lenses 100R and 100L is denoted by X₁′˜X₂′ when the object lenses 100R and 100L focus at the distance X denoted by the equation (1), then the upper limit of the range X₁′ and the lower limit of the range X₂′ can be expressed as follow. $\begin{matrix} {X_{1}^{\prime} = \frac{X_{1} \cdot f^{2}}{f^{2} + {\delta \cdot F \cdot \left( {X_{1} - f} \right)}}} & (5) \\ {X_{2}^{\prime} = \frac{X_{2} \cdot f^{2}}{f^{2} + {\delta \cdot F \cdot \left( {X_{2} - f} \right)}}} & (6) \end{matrix}$

[0117] Here, f denotes the focal length of the lenses 100R and 100L, F denotes a F number (=aperture diameter/focal length), and δ denotes the diameter of the circle of least confusion. It should be noted that the size of a pixel of the image sensors 102R and 102L can be considered as δ, for example.

[0118] Accordingly, in a case where the system controller 210 tries to control the lenses 100R and 100L to focus at the distance X expressed by the equation (1), it can obtain a clear image of the object 2 in the aforesaid range between X₁′˜X₂′. Therefore, the system controller 210 controls the aperture diaphragm, or the aperture diameter of the iris diaphragm 101, by controlling the iris diaphragm controllers 108R and 108L so that the F number which achieves the closest match between respective X₁′ and X₂′ satisfying the equations (5) and (6), and X₁ and X₂ of the equations (1) to (3).

[0119] Thus, the focal length and aperture diaphragm are decided so that a clear image can be obtained in the entire range in the depth direction of the object 2 (in the X direction) by performing the operational sequence of steps S2 to S5.

[0120] Note, in a case where the luminance level is changed more than a predetermined value by the processing at step S5, it can be dealt with by changing the intensity of the illumination unit 200. Another way to deal with this situation is to additionally provide an AGC (automatic gain control) circuit to correct the level electrically.

[0121] Zoom Ratio Adjustment (Step S6)

[0122] Next at step S6, zoom ratio is adjusted so that the entire object 2 is in the field of view of the camera. In order to generate a three-dimensional image of the object, there has to be an overlapping portion in images sensed at at least two image sensing points. In a case where the convergence angle between the right and left lenses is much different from the angles of view of the right and left lenses, there would not be any overlapping portion in the images. Therefore, by maximizing an overlapping portion, a three-dimensional image of a wide area can be realized.

[0123]FIGS. 7A to 7B are explanatory views showing a brief zoom ratio adjustment performed at step S6.

[0124] The system controller 210 stores images obtained from the image sensors 102R and 102L when the object 2 is basically in the focal depth X₁′˜X₂′ in the memory 910 (FIG. 4) as well as detects an overlapping portion of the object 2 by using the image processing section 920. The overlapping portion is represented by image signals included in the both images of the object sensed by the right and left lenses. The overlapping portion is shown with an oblique stripe pattern in FIGS. 7A and 7B. As a method of detecting the overlapping portion, a correlation operating method which takes correlation by comparing the obtained right and left images, or a template matching processing which searches a predetermined image that is set in the template from the right and left images, for instance, may be used.

[0125] The zoom ratio adjustment at step S6 is for adjusting the zoom ratio so that the area of the overlapping portion becomes maximum.

[0126] In order to do so, the controller 210 detects the overlapping portion 500 between the right and left images of the object 2 sensed by the right and left lenses 100R and 100L, as shown in FIG. 7A, by using the aforesaid method. Next, the zoom ratios of the lenses 100R and 100L are changed so as to increase the area of the overlapping portion 500 (e.g., in FIG. 7B), then the controller 210 outputs control signals to the zoom controllers 106R and 106L.

[0127]FIG. 8 is a graph showing change of the area of the overlapping portion 500 of the object 2 in frames in accordance with the zoom ratio adjustment.

[0128] In FIG. 8, the focal length f of the lenses 100R and 100L at which the area of the overlapping portion 500 reaches the peak P is calculated by the image processing section 920 of the controller 210, then the controller 210 gives a control signal to the zoom controllers 106R and 106L so as to obtain the focal length f.

[0129] Accordingly, by determining the optimum exposure condition, the optimum aperture diaphragm and the optimum focal length f at steps S2 to S6, it is possible to obtain a clear image of the entire object 2 both in the depth and width directions.

[0130] Readjustment of Parameters

[0131] In a case where the focal length f is changed by the operation at step S6 which results in changing the depth of focus more than a predetermined value (YES at step S7), the process proceeds to step S8 where the parameters are readjusted. The readjustment performed at step S8 is to repeat the processes at steps S2 to S7.

[0132] Adjustment of Right-Left Difference

[0133] In the adjustment of right-left difference performed at step S8, the right-left differences of the exposure amounts (aperture diaphragm), the aperture values F and the zoom ratios (focal length f) of the right and left optical systems are detected by the R-L difference discriminator 260, and each optical system is controlled so that these differences decrease. More specifically, in a case where a differences between the right and left lenses on the aperture diaphragms (will affect the exposure amounts and the focal depths) and the focal lengths (will affect the focal depths and an angles of field of view) obtained for the right and left optical systems at steps S1 to S7 are more than a threshold, the image sensing parameters obtained for the right optical system are used for both of the right and left optical systems. In other words, if the respective image sensing parameters for the right optical system differ from the corresponding image sensing parameters for the left optical system, then the image sensing parameters for the right optical system is used as the parameters for the system shown in FIG. 2.

[0134] Setting of Resolving Power (Step S9)

[0135] In recognizing three-dimensional shape information, information for expressing the actual distance to an object is in the form of parameters which specify the shape of the object. The aforesaid X₁ and X₂ are only the distances in the camera space coordinate system but not the real distances to the object. Therefore, the parameter extracting apparatus of the first embodiment finds the actual distance to the object as an example of shape parameters.

[0136] Distance information Z to the object can be expressed by the following equation. $\begin{matrix} {Z = \frac{f \cdot b}{d}} & (7) \end{matrix}$

[0137] Here, f denotes a focal length of the optical system; b, base line length; and d, parallax.

[0138] In order to recognize three-dimensional shape information in better precision by performing image processing, the resolving power at the distance Z with respect to the parallax is important. The resolving power at the distance Z is defined by the following equation. $\begin{matrix} {\frac{\partial Z}{\partial d} = {- \frac{f \cdot b}{d^{2}}}} & (8) \end{matrix}$

[0139] In this system, the resolving power is considered as one of the image sensing parameters, and constructed so as to be set from outside by an operator. The equation (8) indicates that, when the resolving power is given, then the focal length changes in accordance with the resolving power. In other words, $\begin{matrix} {f = {{- \frac{d^{2}}{b}} \cdot \frac{\partial Z}{\partial d}}} & (9) \end{matrix}$

[0140] It is possible to set the resolving power from an external computer, or the like, through the external I/F 280 at step S9 and to set a focal length f in accordance with the equation (9) based on the resolving power upon adjusting focal length at step S5 in the flowchart shown in FIGS. 5A, 5B.

[0141] Accordingly, the optimum image sensing parameters for each of n image sensing points, A₀ to A_(n), can be determined from the processes at steps S2 to S9.

[0142] Shape Recognition

[0143] In the subsequent steps after step S10, an image of the object 2 is sensed. The image sensing is for recognizing the shape of the object 2, and the image must be sensed under the optimum setting condition for the three-dimensional shape recognition by using the image sensing parameters determined at steps S2 to S9.

[0144] First, the system controller 210 gives a signal to the display 240 at step S10, and notifies a user of the completion of the image sensing parameters. The display 240 can be a CRT, LCD, or the like, or can be a simple display using an LED, or the like. Further, sound may be used for notification along with the visual display.

[0145] Next, the user confirms the notification by the LED, or the like, then make the system controller 210 start performing the three-dimensional recognition (extraction of shape parameters).

[0146] When the user pushes an start inputting button (not shown) at step S11, the posture of the camera is initialized at step S12. The initialization of the posture of the camera performed at step S12 is to initialize the posture of the camera by using the optimum image sensing parameters for an image sensing point of the camera, A_(x), obtained at steps S2 to S9, where the camera currently is at. This initialization guarantees that the entire object falls within a proper depths of focus.

[0147] Next, the parameter extracting apparatus 1 senses the object 2 from different positions while moving from the position A₀ toward the position A_(n) as shown in FIG. 2. In this case, the change of the image sensing parameters is prohibited by the system controller 210 since the start inputting button is pushed until a stop button is pushed.

[0148] While the parameter extracting apparatus 1 moves, the posture and the speed of the displacement of the apparatus 1 are detected by the posture detector 201 provided inside of the apparatus 1 at step S13. In a case where the detected speed of the displacement is not within an appropriate range at step S14, this is notified to the user by lighting the LED of the display 240 at step S15.

[0149] At step S16, the user inputs an image by pressing the shutter 230 at a predetermined rate. It is possible to notify the user of the timing to press the shutter 230 calculated by the system controller 210 on the basis of the signals detected by the posture detector 201, by lighting the LED of the display 240, for example.

[0150] When it is detected that the shutter 230 is pressed, in synchronization with the detection, the system controller 210 calculates posture information at that point from the signals detected by the posture detector 201 at step S17, as well as gives the calculated posture information to the image processor 220. Thereafter, at step S18, the image processor 220 calculates the three dimensional coordinates of the objects from the posture information and the image signals of the right and left images, then outputs the calculated coordinates to the recorder 250 along with pixel values thereof.

[0151] At step S19, the recorder 250 converts the inputted signals to signals in a proper format, and writes the formatted signals on a recording medium. After that, the processes at step S17 to S20 are repeated until it is determined that all the image signals have been inputted at step S20. When all the image signals have been inputted, the process is completed at step S21.

[0152] <First Modification>

[0153]FIG. 9 is an overall view illustrating a brief configuration of a three-dimensional shape recognition apparatus according to a modification of the first embodiment. In contrast to a double-eye camera used in the first embodiment, a single-eye camera is used in the first modification.

[0154] The first modification is performed under the “panoramic image sensing mode” shown in FIG. 1.

[0155] In FIG. 9, reference numeral 705 denotes an object; 700, a parameter extracting apparatus; 100, an object lens; and 200, an illumination unit.

[0156] Reference numeral 703 denotes a pad on which the object 705 is placed, and respective characters, “A”, “B”, “C” and “D” are written in the four corners of the pad 703 as markers. The pad 703 serves as a background image as in the first embodiment, as well as provides information for posture recognition, which is specific to the first modification, to the parameter extracting apparatus 700. In other words, the parameter extracting apparatus 700 calculates its posture on the basis of the direction, distortion, and other information, of the image of the letters, “A”, “B”, “C” and “D”, written on the pad 703.

[0157]FIG. 10 is a block diagram illustrating a configuration of the parameter extracting apparatus according to the first modification. It should be noted that, in FIG. 10, the units and elements referred by the same or similar reference numerals as the number parts of the reference numerals in FIG. 3 have the same functions and operate in the same manner.

[0158] In FIG. 10, reference numeral 100 denotes the object lens which may consist of a zoom lens. Further, reference numeral 101 denotes an iris diaphragm; 102, an image sensor, such as CCD; 103, an A/D converter; 104, an image signal processor; and 105, an image separator for separating the object image from a background image.

[0159] Further, reference numeral 740 denotes a posture detector which detects a posture of the parameter extracting apparatus 700 on the basis of the direction, distortion, and other information, of the markers written on the pad 703. Reference numeral 720 denotes an image processor for extracting three-dimensional shape information of the object 705 from the image signals and the posture information; 770, a focusing state detector which has the same function and operates in the same manner as the focusing state detector 270 in the first embodiment, except the focusing state detector 770 has only one lens; 750, an image memory; 710, a system controller which controls the entire apparatus; and 730, a memory provided in the system controller 710.

[0160] Next, an operation of the first modification will be described with reference to a flowchart shown in FIG. 11.

[0161] The processes at steps S1 to S5 shown in FIG. 11 are performed on a single image signal as in the case of the processes shown in FIGS. 5A, 5B (first embodiment).

[0162] The point which is different from the first embodiment is a method of adjusting the zoom ratio at step S22. More specifically, the pad 703 is placed at an appropriate position in advance to the image sensing operation, since the parameter extracting apparatus 700 in the first modification detects its posture in accordance with the image of the pad 703. Thereafter, the image separator 105 performs correlation operation or template matching between a reference pattern of the markers (i.e., four letters, “A”, “B”, “C” and “D”, on four corners as shown in FIG. 9) on the pad 703 and the current image of the pad 703. Then, an image of each marker is extracted, and a position detection signal of the image of the marker is outputted to the system controller 710. The system controller 710 controls the zoom controller 106 to set the focal length f so that the markers on the pad 703 are inside of a proper range of the field of view. At the same time, information about the focal length f is stored in the memory 730 in the system controller 710.

[0163] Thereby, the entire view of the 703 can be always put within the field of view, thus the posture can be always detected on the basis of the shapes of the markers. More specifically, the markers are written on the four corners of the pad 703, and an operator puts the object 705 inside of the four corners in the first modification. Therefore, whenever the parameter extracting apparatus 700 can recognize all the four markers, the object 705 is within the field of view of the parameter extracting apparatus 700.

[0164] The aforesaid processing is the contents of the “zoom ratio adjustment” at step S22.

[0165] Note that, according to the principle of the first modification, four markers are not necessarily needed, and three markers may be enough as far as the object is placed inside of the three markers. Further, the markers are not limited to letters, and can be symbols. Furthermore, they do not have to be written on the pad 703, and can be in the form of stickers which can be replaced freely.

[0166] After image sensing parameters for the optical system are set in the processes at the steps S2 to S22, an LED of the display 240 is lit at step S23 to notify the user that the apparatus is ready for input.

[0167] In response to this notification, the user starts inputting at step S24, and presses the shutter 230 at some intervals as moving the parameter extracting apparatus 700 at step S25, thereby inputting images. Upon this operation, the system controller 710 adjusts a focal length so that all the markers are always within an appropriate range of the field of view of the camera on the basis of information from the image separator 105 so that the object 705 is always in the field of view of the camera. Further, the image parameter information, including the focal length, is stored in the memory 730 at each image sensing point. With this stored information, the posture detector 740 detects the posture of the parameter extracting apparatus 700 from the detected position of the markers (refer to FIG. 12).

[0168] At the succeeding step S27, the image processor 720 performs an image processing for the three-dimensional recognition.

[0169] More specifically, the image processor 720 reads out a plurality of image signals (at each of image sensing points, A₀ and A₁ to A_(n)) stored in the image memory 750. Thereafter, it corrects read-out images and converts them into images in the same focal state on the basis of the image sensing parameters stored in the memory 730 in the system controller 710. Further, the image processor 720 extracts three-dimensional shape information of the object 705 from the corrected image signals and a posture signal obtained by the posture detector 740, then outputs it to the recorder 250. The recorder 250 converts the inputted signals into signals of a proper format, then records them into a recording medium. Images are inputted until the input at all the image sensing point is completed at step S28, thereafter, the process is ended at step S29.

[0170] <Second Modification>

[0171]FIG. 13 is a block diagram illustrating a configuration of a parameter extracting apparatus of a second modification. In the second modification, a pad written with markers is used as in the first modification, however, it differs from the first modification in the point in that the number of the pads used in the second modification is plural. Further, the second modification is further characterized in the point in which image sensing operation can be redone at arbitrary positions.

[0172] In FIG. 13, the same units and elements refereed by the same reference numerals as those in FIG. 2 (first embodiment) and FIG. 10 (first modification) have the same functions and operate in the same manner, and explanations of those are omitted.

[0173] In FIG. 13, reference numeral 820 denotes a memory for storing information on each of a plurality of pads. A user can select the type of the pad 703 through a pad selector 780 (e.g., keyboard). Reference numeral 790 denotes a recorder which records three-dimensional shape information as well as the image sensing parameters. This also has a function of reading out the stored information when necessary. Reference numeral 800 denotes a system controller having the same function as of the system controller 210 in the first embodiment, and controls the entire apparatus. Reference numeral 810 denotes a matching processor for performing matching process, based on pixel information, between three-dimensional shape information, recorded in advance, which is read out by the recorder 790 and an image currently sensed.

[0174] Next, an operation of the second modification will be described with reference to a flowchart shown in FIG. 14.

[0175] After the power is turned on at step S1, the user selects the type of the pad 703 by the pad selector 780 at step S30. Next, the system controller 800 reads out information on the selected pad from the memory 820 on the basis of the input selection information at step S31, then uses the information for focal length control, focusing control, posture detection, and so on.

[0176] According to the second modification, the user can select a pad to be used as a background out of a plurality of pads with markers, thus it is possible to set the background which is most suitable to the shape and size, for example, of an object whose shape is to be recognized. As a result, the image sensing parameters which are most suitable to the object can be determined. Therefore, the precision of the three-dimensional shape recognition on the basis of images obtained by using the optimum image sensing parameters can be improved.

[0177] Next, the three-dimensional recognition process according to the second modification will be described. The processes at steps S32 to S41 are the same as the processes at step S2 to S27 explained in the first modification. More specifically, the image sensing parameters are determined at steps S32 to S36, then three-dimensional shape information of the object is extracted at steps S37 to S41.

[0178] In an image sensing processing performed at a plurality of image sensing points at steps S39 to S45, there may be some cases in which the images sensed at specific image sensing points should be sensed again. In such a case, the user selects a re-sensing mode through the pad selector 780. This selection is detected at step S42. The user must move the parameter extracting apparatus 700 at a position where the object is to be re-sensed. Then, the system controller 800 makes the recorder 790 read images which have been sensed and recorded at step S43. Then, at step S44, the system controller 800 performs matching operation between the currently sensed image and the plurality of read-out images, and specifies an image to be replaced.

[0179] When the area currently sensed and the read signals are corresponded by the matching operation, then the LED, for example, in the display 240 is lit at step S37 to notify the user that the apparatus is ready for input. Then at steps S38 and S39, the previously sensed image is replaced by the currently input image.

[0180] It should be noted that, when the object is re-sensed at step S42, it is possible to change the position of the object 705 on the pad 703. In this case, too, the previously recorded image is matched to the currently input image, and input process starts from a base point where the points in the two images are corresponded.

[0181] Further, in a case of terminating the input operation and re-sensing images of the object, the recorder 790 reads out the image sensing parameters in addition to a previously recorded three-dimensional shape information and pixel signals, and input operation is performed after setting the same image sensing parameters to those previously used in the image sensing operation.

[0182] Further, in a case of using a pad 703 which is not registered in the memory 820, the pad 703 is to be registered through the external I/F 280 from a computer, or the like.

[0183] In a case where no image of the object is to be re-sensed, the processes at steps S39 to S42 are repeated until finishing inputting images, then terminated at step S46.

[0184] As explained above, the three-dimensional shape recognition apparatus is featured by determination of the optimum image sensing parameters and storage of images, and performs three-dimensional shape extraction in high precision by using the optimum image sensing condition parameters.

[0185] It should be noted that the units which are in the right side of a dashed line L can be configured separately from the parameter extracting apparatus of the first embodiment, and may be provided in a workstation, a computer, or the like.

[0186] Next, a three-dimensional shape extraction apparatus, to which an image sensing apparatus of the present invention is applied, according to the second embodiment will be described.

[0187] <Second Embodiment>. . . Edit a Three-dimensional Image

[0188] A configuration of a three-dimensional image editing system to which the present invention is applied is described below.

[0189] The three-dimensional shape extraction apparatus according to the second embodiment is for displaying and editing a three-dimensional image by applying a principle of the method of determining the image sensing parameters described in the first embodiment (i.e., the three-dimensional shape extraction mode, the display and editing mode and the panoramic image sensing mode which are shown in FIG. 1).

[0190] Configuration of the System

[0191] A configuration of the three-dimensional image editing system according to the second embodiment is explained below.

[0192]FIG. 15 is a brief view of the three-dimensional shape extraction apparatus and the environment in which the apparatus is used according to the second embodiment.

[0193] The system shown in FIG. 15 has an image sensing head (camera head) 1001, an image processing apparatus 4000, a monitor 1008, an operation unit 1011, a printer 1009, and programs 2000 and 3000 for combining data and editing a document. The image sensing head 1001 adopts multi-lens image sensing systems. Reference numerals 1100L and 1100R respectively denote left and right object lenses (simply referred as “right and left lenses”, hereinafter), and 1010L and 1010R denote image sensing areas for the right and left lenses 1100L and 1100R, respectively. Further, these image sensing areas have to be overlapped in order to obtain a three-dimensional image.

[0194] Further, reference numeral 1002 denotes an object; 1003, a background stage to serve as a background image of the object 1002; and 1200, an illumination unit for illuminating the object 1002. The illumination unit 1200 illuminates the object in accordance with the image sensing environment.

[0195] Reference numeral 1004 denotes a posture detector for detecting a posture of the image sensing head 1001 when sensing an image. The posture detector 1004 has a detection function of detecting a posture (includes posture information) of the image sensing head 1001 by performing image processes on the basis of information obtained from the background stage 1003 and another detection function for physically detecting a posture of the image sensing head 1001 with a sensor, such as a gyro, or the like.

[0196] The image sensing head 1001 senses the object 1002 while moving from the starting point A₀ for image sensing operation to the end point A_(n). Along with the image sensing operation performed at each image sensing point between the starting point A₀ and the end point A_(n), the position and posture of the image sensing head 1001 are detected by the posture detector 1004, and detected posture information is outputted.

[0197] A memory 1005 stores image data, obtained by the camera head 1001, and the posture information of the camera head 1001, obtained by the posture detector 1004.

[0198] A three-dimensional image processor (3D image processor) 1006 calculates three-dimensional shape information of the object on the basis of the image data stored in the memory 1005 and the corresponding posture information of the camera head 1001.

[0199] A two-dimensional image processor (2D image processor) 1007 calculates two-dimensional image data of the object seen from an arbitrary viewpoint in a style designated by a user from the three-dimensional image data of the object obtained by the 3D image data processor 1006.

[0200]FIG. 16 shows types of images processing prepared in the image processing apparatus according to the second embodiment. A user selects a type, in which an image is to be outputted, out of the prepared types of images shown in FIG. 16 via the operation unit 1011 shown in FIG. 15.

[0201] More concretely, a user can select whether to process an image of the object as a half-tone image (e.g., 1012 in FIG. 16), or as a wire image in which edges of the object are expressed with lines (e.g., 1013 in FIG. 16), or as a polygon image in which the surface of the object is expressed with a plurality of successive planes of predetermined sizes (e.g., 1014 in FIG. 16) via the operation unit 1011 which will be described later.

[0202] The document editor 3000 is for editing a document, such as text data, and the data combining program 2000 combines and edits document data and object data obtained by the 2D image processor 1007.

[0203] The monitor 1008 displays two-dimensional image data of the object, document data, and so on.

[0204] The printer 1009 prints the two-dimensional image data of the object, the document data, and so on, on paper, or the like.

[0205] The operation unit 1011 performs various kinds of operation for changing viewpoints to see the object, changing styles of image of the object, and combining and editing various kinds of data performed with the data combining program 2000, for example.

[0206]FIGS. 17A, 17B are a block diagram illustrating a detailed configuration of the image sensing head 1001 and the image processing unit (the unit surrounded by a dashed line in FIG. 15), which constitute a three-dimensional shape information extraction block together.

[0207] In FIGS. 17A, 17B, the right and left lenses 1100R and 1100L consist of zoom lenses.

[0208] Functions of iris diaphragms 1101R and 1101L, image sensors 1102R and 1102L, A/D converters 1103R and 1103L, image signal processors 1104R and 1104L, image separators 1105R and 1105L, zoom controllers 1106R and 1106L, focus controllers 1107R and 1107L, iris diaphragm controllers 1108R and 1108L, the posture detector 1004, and so on, are the same as those in the first embodiment.

[0209] A system controller 1210 corresponds to the system controller 210 in the first embodiment, and is for controlling the overall processes performed in the three-dimensional shape extraction apparatus. The system controller 1210 is configured with a microcomputer 1900, a memory 1910 and an image processing section 1920, as shown in FIG. 18.

[0210] An image processor 1220 corresponds to the image processor 220 explained in the first embodiment, and realizes functions of the memory 1005, the 3D image processor 1006, and the 2D image processor 1007 which are shown in a schematic diagram in FIG. 15. More specifically, the image processor 1220 extracts three-dimensional shape information of the object from image signals of the sensed object. Further, it converts three-dimensional shape information of the object into information in integrated coordinate systems in accordance with posture information of the camera head at each image sensing point obtained by the posture detector 1004.

[0211] An detailed operation of a camera portion of the three-dimensional shape extraction apparatus according to the second embodiment will be described below with reference to FIGS. 17A, 17B.

[0212] Images of the object are inputted through the lenses 1100R and 1100L. The inputted images of the object are converted into electrical signals by the image sensors 1102R and 1102L. The obtained electrical signals are further converted from analog signals to digital signals by the A/D converters 1103R and 1103L, then enter to the image signal processors 1104R and 1104L.

[0213] In the image signal processors 1104R and 1104L, the digitized image signals of the object are converted into luminance signals and color signals of appropriate formats. Then, the image separators 1105R and 1105L separate images of the object whose three-dimensional shape information is subject to measurement from a background image on the basis of the signals obtained by the image signal processors 1104R and 1104L.

[0214] A method of separating the images adopted by the image separators 105R and 105L in the first embodiment is applicable in the second embodiment.

[0215] The separated images of the object enter the image processor 1220 where three-dimensional shape information is extracted on the basis of image sensing parameters used upon sensing the images of the object.

[0216] Process of Sensing Images

[0217] When a user operates a release button 1230 after facing the camera head 1001 to the object 1002, operation to sense images of the object is started.

[0218] Then, the first image data is stored in the memory 1005. In the three-dimensional image input mode, the user moves the camera head 1001 from the image sensing point A₀ to the point A_(n) sequentially around the object.

[0219] After the camera head 1001 sensed at an image sensing point A_(m) in a way from the point A₀ to the point A_(n) and when the posture detector 1004 detects that the position and the direction of the camera head 1001 are changed by a predetermined amount comparing to the image sensing point A_(m), the next image sensing operation is performed at the next image sensing point A_(m+1). Similarly, images of the object are sensed sequentially at different image sensing points until the camera head 1001 reaches the point A_(n). While sensing the images of the object as described above, the amount of change in position and direction, obtained from image data as well as posture data from the detector 1004, of the camera head at each image sensing point with respect to the position A₀ from which the camera head 1001 sensed the object 1002 for the first time is stored in the memory 1005.

[0220] It should be noted that, in a case where the posture detector 1004 detects that at least either the position or the direction of the camera head 1001 is greatly changed while the camera head 1001 moves from A₀ toward A_(n), the apparatus warns the user.

[0221] The aforesaid operation is repeated a few times. Then, when enough image data for calculating three-dimensional image data of the object is obtained, this is notified to the user by an indicator which is for notifying the end of the image sensing (not shown) and the image sensing operation is completed.

[0222] How the camera head 1001 moves and a method of inputting images are the same as those of the parameter extracting apparatus described in the first embodiment.

[0223] Next, the 3D image processor 1006 calculates to generate three-dimensional image data on the basis of the image data and the posture information (posture and position of the camera head 1001 when sensing images) corresponding to each image data stored in the memory 1005.

[0224] The 2D image processor 1007 calculates to obtain two-dimensional data of an image of the object seen from the image sensing point (A₀) from which the object is first sensed on the basis of the three-dimensional image data obtained by the 3D image processor 1006, and the monitor 1008 displays the calculated two-dimensional data. At this time, the 2D image processor 1007 converts the three-dimensional data into the two-dimensional data in an image type (refer to FIG. 16) selected via the operation unit 1101 by the user.

[0225] Further, the three-dimensional shape extraction apparatus according to the second embodiment is able to change the image of the object displayed on the monitor 1008 to an image of an arbitrary image type designated via the operation unit 1011 by the user or to an image of the object seen from an arbitrary viewpoint. More specifically, when an image type is designated via the operation unit 1011, the 2D image processor 1007 again calculates to obtain two-dimensional image data of a designated image type on the basis of the three-dimensional image data. Further, in order to change viewpoints, an image of the object 1015, as shown in FIG. 19 for example, displayed on the monitor 1008 can be changed to any image of the object seen from an arbitrary viewpoint, as images denoted by 1016 to 1021 in FIG. 19.

[0226] The user can designate to output the image data of the sensed object to the printer 1009 after changing viewpoints or image types of the image data according to purpose of using the image. Further, the user can also combine or edit document data, made in advance, and image data, generated by the 2D image processor 1007, while displaying those data on the monitor 1008. If the user wants to change image types and/or viewpoints of the image of the object in this combining/editing process, the user operates the operation unit 1011.

[0227] Determination of Image Sensing Parameters

[0228] A flowchart shown in FIG. 20 shows a processing sequence of the camera portion of the three-dimensional shape extraction apparatus according to the second embodiment.

[0229] In FIG. 20, steps S101, S102, S104, S105, S106, S108 and S109 are the same as the steps S1, S2, S4, S5, S6, S8 and S9 described in the first embodiment, respectively.

[0230] Briefly, “exposure adjustment” at step S102 is for controlling image signals so that luminance level of the image signals is high enough for performing three-dimensional shape information extraction.

[0231] “In-focus point adjustment” at step S105 is for controlling the aperture number (i.e., aperture diaphragm) of the camera so that an image of the object is within the depth of focus by adopting the same method explained with reference to FIG. 6 in the first embodiment.

[0232] Further, “zoom ratio adjustment” at step S106 is for adjusting the zoom ratio so that an image of the entire object falls within the image sensing area of each image sensing system, as described with reference to FIGS. 7A and 7B in the first embodiment.

[0233] “Readjustment of Parameters and Adjustment of Right-Left Difference” at step S108 includes a correction process performed in a case where the focal length f is changed as a result of the “zoom ratio adjustment” and the depth of focus is changed more than an allowed value as a result of the zoom ratio adjustment, and a process to correct differences between the right and left lenses, as in the first embodiment.

[0234] “Setting of Resolving Power” at step S109 has the same purpose as step S9 in the first embodiment.

[0235] After the image sensing condition parameters are adjusted by the processes at steps S100 and S200 in FIG. 20, the system controller 1210 gives a signal to an electrical view finder (EVF) 1240 to notify the user of the end of setting the image sensing condition parameters. The EVF 1240 may be a CRT, an LCD, or a simple display, such as an LED. Further, sound may be used along with the display.

[0236] Finder Λ When Inputting a Three-dimensional Image

[0237] An operator checks the display, e.g., an LED, then starts extracting three-dimensional shape information.

[0238] When the operator presses an input start button (not shown), a detection signal by the posture detector 201 is initialized.

[0239] As described above, the image processing apparatus in the second embodiment can generate a three-dimensional image and a panoramic image. A three-dimensional image can be generated from more than one image sensed by a double-lens camera (e.g., by the image sensing head 1001 shown in FIG. 15) or sensed by a single-lens camera at more than one image sensing point. In either case, an overlapping portion between an image for the right eye and an image for the left eye of the user is necessary in order to observe the images of the object as a three-dimensional image.

[0240] In order to sense an object by using a multi-lens camera (or sense from a plurality of image sensing points), conventionally, it is necessary to provide two view finders. Then, framing is performed by matching images of the object displayed on the two view finders. In the second embodiment, it becomes possible to perform framing the images of the object with a single view finder. For this sake, a finder part (EVF 1240) of the image sensing head 1001 is devised so that the overlapping portion can be easily detected.

[0241] Referring to FIGS. 17 and 21, an operation of the finder according to the second embodiment will be described.

[0242] As shown in FIG. 21, the display operation on the finder in the second embodiment is performed with image memories 1073R, 1073L, 1075R and 1075L, the EVF 1240, an overlapping portion detector 1092 and an sound generator 1097 which are shown in FIGS. 17A, 17B.

[0243] In a case of sensing the object from a plurality of image sensing points and obtaining three-dimensional shape information on the basis of the sensed images, the sensed images are stored in a recorder 1250 as images relating to each other. The image memories 1073R, 1073L, 1075R and 1075L are used for primary storage of the sensed images. Especially, the last sensed images are stored in the image memories 1075R and 1075L, and the images currently being sensed are stored in the memories 1073R and 1073L.

[0244] In a case where the three-dimensional image input mode is selected, the image of the object currently being sensed by the right optical system is stored in the memory 1073R, and the image currently being sensed by the left optical system is stored in the memory 1073L.

[0245] The overlapping portion detector 1092 detects an overlapping portion between the image, sensed by the right optical system and stored in the memory 1073R, and the image, sensed by the left optical system and stored in the memory 1073L. A template mapping which will be explained later, for example, may be used for detecting an overlapping portion.

[0246] The electronic view finder in the second embodiment has a characteristic in the way of displaying images.

[0247] As shown in FIG. 22, no image is displayed on the EVF 1240 for areas which are not overlapped between the right and left images, and an overlapped portion of the images is displayed on the EVF based on the image sensed by the right optical system. An example shown in FIG. 22 shows what is displayed on the EVF 1240 when an object, in this case, a cup, is sensed by the right and left lenses 1100R and 1100L. In FIG. 22, portions indicated by oblique hatching are non-overlapping portions between the right and left images, thus neither right nor left image is not displayed. Whereas, the central area, where a part of the cup is displayed, of the EVF shows the overlapping portion, and a right image is displayed to show that there is the overlapping portion between the right and left images.

[0248] A user can obtain a three-dimensional image with no fail by confirming that an object (either partial or whole) which the user wants to three-dimensionally display is displayed on the EVF 1240.

[0249] It should be noted that, when the user presses the release button 1230 after confirming the image displayed on the EVF 1240, two images, i.e., the right image and the left image, are sensed at one image sensing point, and overlapping portions of the right and left images are compressed by using JPEG, which is a compressing method, for example, and recorded. The reason for storing only the overlapping portions is to avoid storing useless information, i.e., the non-overlapping portions, since a three-dimensional image of the overlapping portion can be obtained.

[0250] Note, in a case where the release button 1230 is pressed when there is no overlapping portion in the angles of views of the right and left image sensing systems, the sound generator 1097 generates an alarm notifying that there is no correlation between the right image and the left image. The user may notice that there is no correlation between the right image and the left image, however, when the user determines it is okay, the image sensing process can be continued by further pressing the release button 1230.

[0251] After a plurality of images of the object are sensed at a plurality of image sensing points without any miss-operation, the recorder 1250 is disconnected from the image sensing apparatus and connected to a personal computer. Thereby, it is possible to use the obtained information with an application software on the personal computer.

[0252] In order to use the information on a computer, an image is automatically selected by checking a grouping flags included in supplementary information of the images and displayed on the personal computer, thereby using the right and left images.

[0253] A recording format of an image in the recorder 1250 in the three-dimensional image input mode is shown in FIG. 23. More specifically, posture information, image sensing condition parameters, an overlapping portion in a right image and an overlapping portion in a left image are stored for each image sensing point.

[0254] In the image files stored in the recorder 1250, group identifier/image sensing point/distinction of right and left cameras/compression method are also recorded as supplementary information.

[0255] Panoramic Image Sensing

[0256] A panoramic image sensing is a function to synthesize a plurality of images sensed at a plurality of image sensing points as shown in FIG. 24, and more specifically, a function to generate an image as if it is a single continuous image with no overlapping portion and no discrete portion.

[0257] In the second embodiment, the image processing apparatus has the overlapping portion detector 1092 for detecting an overlapping portion. Thus, in the panoramic image sensing mode, the system controller 1210 stores images, sensed at a current image sensing point A_(m) and transmitted from the image signal processors 1104R and 1104L, in the memories 1073R and 1073L, and controls so that the image sensed at the last image sensing point A_(m-1) are read out from the recorder 1250 and stored in the memories 1075R and 1075L. Further, The system controller 1210 controls the overlapping portion detector 1092 to detect an overlapping portion between the image sensed at a current image sensing point A_(m) and stored in the memory 1073R and the image sensed at the last image sensing point A_(m-1) stored in the memory 1075R. The system controller 1210 further controls the image processor 1220 so that the overlapping portion in the image stored in the memory 1073R (i.e., the image currently being sensed) is not displayed. Then, the overlapping portion is not displayed on the EVF 1240 as shown in FIG. 25. While checking the image displayed on the EVF 1240, the user moves the image sensing head 1001 so that the overlapping portion (i.e., the portion which is not displayed) disappears, thereafter presses the release button 1230.

[0258] In the panoramic image sensing mode in the second embodiment, as described above, it is possible to obtain a panoramic image with no fail. Note, in FIG. 25, a frame 1500 shows a field of view seen at the last image sensing point A_(m-1). The user can obtain a panoramic image more certainly by giving attention to the frame 1500.

[0259] Further, in the panoramic image sensing mode, a series of obtained images are stored in the recorder 1250 with supplementary information, as in the case of the three-dimensional image input mode.

[0260] According to the three-dimensional image input mode and the panoramic image sensing mode in the second embodiment as described above, image sensing failure can be prevented by displaying an image on the EVF 1240 so that an overlapping portion can be easily seen.

[0261] Furthermore, in a case where an image sensing operation is continued when there is no overlapping portion in the three-dimensional image input mode, or in a case where an image sensing operation is continued when there is an overlapping portion in the panoramic image sensing mode, alarm sound is generated, thereby further preventing failure of image sensing operation.

[0262] Further, in a case where image sensing operations are made to be related to each other as a group, the grouping information is also recorded as supplementary information of the recorded image, thus it easier to operate on a personal computer.

[0263] Further, in a three-dimensional image sensing mode, since only the overlapping portion between the right and left image is displayed on the EVF, a user can clearly see an image which can be three-dimensionally observed. Furthermore, only the overlapping portion between the right and left images is recorded, it is possible to prevent a waste of memory.

[0264] As other example of the second embodiment, an overlapping portion between the right and left images may be obtained on the basis of parameters for the image sensing apparatus, such as the focal lengths, distance to the object from the image sensing apparatus, the base line length, and the convergence angle of the right and left image sensing systems instead of finding it by correlation between the right and left images. Then, an image of the obtained overlapping portion is displayed. With this method, although precision may drop somewhat comparing to obtaining the overlapping portion with correlation between the right and left images, image memories can be saved, thus reducing manufacturing cost.

[0265] Extraction of Three-Dimensional Information

[0266] Next, extraction of three-dimensional information according to the second embodiment will be described.

[0267] First, extraction of information on distances to a plurality of points on the object (referred by “distance image information”, hereinafter) on the basis of three-dimensional images obtained at a single image sensing point will be described. A processing sequence of extracting distance image information from three-dimensional images is shown in FIG. 26.

[0268] In FIG. 26, right images (R-images) 1110R and left images (L-images) 1110L are three-dimensional images stored in the memory 1910 (shown in FIG. 18). Reference numerals 1111R and 1111L denote edge extractors which detects edges from the stereo images 1110R and 1110L.

[0269] A corresponding edge extractor 1113 finds which edge corresponds to which edge in the stereo images 1110R and 1110L. In other words, it extracts corresponding points which indicate a point on the object. A stereoscopic corresponding point extractor 1112 extracts corresponding points which indicate the same point on the object in the three-dimensional images 1110R and 1110L.

[0270] The two correspondence information on the point of the object extracted by the two corresponding point extractors 1112 and 1113 have to be the same. An inconsistency eliminating unit 1114 determines whether or not there is any inconsistency between the correspondence information obtained by corresponding edge extractor 1113 and the correspondence information obtained by the stereoscopic corresponding point extractor 1112. If there is, the obtained information on the corresponding points having inconsistency is removed. Note, the inconsistency eliminating unit 1114 can perform determination while weighing each output from the two corresponding point extractors 1112 and 1113.

[0271] An occlusion determination unit 1115 determines whether there is any occlusion relationship found in two sets of corresponding point information on the point of the object or not by using position information on the corresponding point information and an index (e.g., remaining difference information) indicating degree of correlation used for finding the corresponding points. This is for increasing reliability on results of the corresponding point processing performed by the stereoscopic corresponding point extractor 1112 and the corresponding edge extractor 1113. Correlation coefficients or remaining difference, as mentioned above, may be used as the index indicating the degree of the correlation. Very large remaining difference or small correlation coefficients mean low reliability of the corresponding relationship. The corresponding points whose correspondence relationship has low reliability are dealt with as either there is an occlusion relationship between the points or there is no correspondence relationship.

[0272] A distance-distribution processor 1116 calculates information on distances to a plurality of points on the object by using the triangulation from the correspondence relationship. The triangulation is as described in relation to the equation (7) in the first embodiment.

[0273] Characteristic point detectors 1117R and 1117L confirm identity of characteristic points (e.g., markers) on the background 1003. A correction data calculation unit 1118 finds image sensing parameters (aperture diaphragm, focal length, etc.), a posture and displacement of the image sensing head by utilizing the characteristic points extracted from the background image by the characteristic point detectors 1117R and 1117L.

[0274] Next, an operation of the image processing apparatus 1220 will be described in sequence with reference to FIG. 26.

[0275] First, a method of extracting corresponding points performed by the corresponding points extractors 1112 and 1113 will be described. In the second embodiment, a template matching method is used as the method of extracting corresponding points.

[0276] In the template matching method, a block (i.e., template) of N×N pixel size, as shown in FIG. 27, is taken out of either the right image 1110R or the left image 1110L (the right image 1110R is used in the second embodiment), then the block is searched in a searching area of M×M (N<M) pixel size in the other image (the left image 1110L in the second embodiment) for (M−N+1)² times. In other words, denoting a point (a, b) as the point where the left-uppermost corner of the template, T_(L), to be set, a remaining difference R(a, b) is calculated in accordance with the following equation, $\begin{matrix} {{R\left( {a,b} \right)} = {\sum\limits_{i = 0}^{N - 1}\quad {\sum\limits_{j = 0}^{N - 1}\quad {{{I_{R{({a,b})}}{I\left( {i,j} \right)}} - {T_{L}\left( {i,j} \right)}}}}}} & (10) \end{matrix}$

[0277] The calculation is repeated, while the position (a, b) is-moved inside of the image to be searched (the left image in the second embodiment), until a position (a, b) where the remaining difference R(a, b) is minimum is obtained. When the template image T_(L)(i, j) is at a position (a, b) where the remaining difference R(a, b) is minimum, the central pixel position of the template T_(L)(i, j) is determined as a corresponding point. Note, in the above equation (10), I_(R(a, b))(i j) is an image portion of the right image 1110R when the left-uppermost corner of the template is at a point (a, b).

[0278] The stereoscopic corresponding point extractor 1112 applies the aforesaid template matching method on the stereo images 1110R and 1110L as shown in FIG. 26, thus obtaining corresponding points in luminance level.

[0279] Extraction of corresponding points on edge is performed by applying the aforesaid template matching to the stereo images which are processed with edge extraction. The edge extraction process (performed by the edge extractors 1111R and 1111L) as a pre-processing for the extraction of corresponding points on edge enhances edge parts by using a Robert filter or a Sobel filter, for example.

[0280] More concretely, in a case where the Robert filter is used, the stereo images 1110R and 1110L (referred by f(i,j)) are inputted the edge extractors 1111R and 1111L, then outputted as image data expressed by the following equation (referred by g(i,j)),

g(i,j)=sqrt({f(i,j)−f(i+1,j+1)}²)+sqrt({f(i+1,j)−f(i,j+1)}²)  . . . (11)

[0281] In a case of using the Robert filter, the following equation may be used instead of the equation (11).

g(i,j)=abs{f(i,j)−f(i+1,j+1)}+abs{f(i+1,j)−f(i,j+1)}  . . . (12)

[0282] When using the Sobel filters, an x-direction filter f_(x) and a y direction filter f_(y) are defined as below. $\begin{matrix} {f_{x} = \begin{pmatrix} {- 1} & 0 & 1 \\ {- 2} & 0 & 2 \\ {- 1} & 0 & 1 \end{pmatrix}} & (13) \\ {f_{y} = \begin{pmatrix} {- 1} & 2 & {- 1} \\ 0 & 0 & 0 \\ 1 & 2 & 1 \end{pmatrix}} & \quad \end{matrix}$

[0283] When the slope of the edge is expressed by θ, then, $\begin{matrix} {\theta = {\tan^{- 1}\left( \frac{f_{y}}{f_{x}} \right)}} & (14) \end{matrix}$

[0284] The edge extractors further applies binarization process on the images whose edges were enhanced to extracts edge portions. The binarization is performed by using an appropriate threshold.

[0285] The image processing apparatus 1220 detects information on distances (referred as “distance information”, hereinafter) in the distance-distribution processor 1116 (shown in FIG. 26), further combines the distance information in time sequence by following the order of processed points shown in FIG. 28.

[0286] Next, a time-sequential combining operation of the distance information by the distance-distribution processor 1116 is explained in more detail with reference to FIG. 28.

[0287] The distance-distribution processor 1116 of the image processor 1220 operates distance information Z in accordance with the aforesaid equation (7). Since the image sensing operation is performed at each image sensing point in this case, the distance information Z^(t) corresponding to image sensing points (A₀, A₁, . . . , A_(n)) forms a sequence of time distance information. Thus, the distance information is denoted by Z^(t)(i, j). If the image sensing operations at image sensing points are performed at an equal time interval δt, for the sake of convenience, the distance information can be expressed with Z^(t)(i, j), Z^(t+2δt)(i, j), Z^(t+3δt)(i,j), and so on, as shown in FIG. 28.

[0288] To the distance-distribution processor 1116, as shown in FIG. 26, the occlusion information is inputted from the occlusion determination unit 1115, and image sensing parameters and posture information are inputted from the correction data calculation unit 1118.

[0289] Referring to FIG. 28, a conversion unit 1121 maps the distance information Z^(t)(i,j) (1120) to integrated coordinate systems. The distance information which is mapped to the integrated coordinate systems is combined. Here, the word “combine” includes a process of unifying the identical points on images of the object (unification process), an interpolation process of interpolating between coordinates of the obtained points, a determination process of determining reliability of coordinates of points on the basis of flags included in depth-of-focus information of the image sensing system, and selection or removal of distance information on the basis of occlusion detection information.

[0290] Combining the distance information always starts from the unification process.

[0291] Referring to FIG. 28, the distance information 1120 of the obtained stereo images are generated in every second. Meanwhile, the system controller 1210 sends information, such as a displacement amount direction of the image sensing head 1001, to the processing unit 1116 in synchronization with the distance information. With the sent information, the obtained distance information is mapped to the integrated coordinate systems by applying a processing method which will be explained later. The mapping to the integrated coordinate systems is aimed for making it easier to combine the information which is obtained in every second.

[0292] It is assumed that two corresponding points (x₀, y₀, z₀) and (x₁, y₁, z₁) are obtained from an image sensed at time t and an image sensed at time t+δt. The determination whether these two corresponding points are an identical point on an object or not is performed on the basis of the following equation. When a small constant ε₁ is defined, if the following relationship,

(x ₀ x ₁)²+(y ₀ −y ₁)²+(z ₀ −z ₁)²<ε₁  . . . (15)

[0293] is satisfied, then the two points are considered as an identical point, and the either one point is outputted on the monitor 1008.

[0294] Note, instead of the equation (15), the equation,

a(x₀ x ₁)² +b(y ₀ −y ₁)² +c(z ₀ −z ₁)²<ε₂  . . . (16)

[0295] can be used. In the equation (16), a, b, c and d are some coefficients. By letting a=b=1 and c=2, i.e., putting more weight in the z direction than in the x and y directions, for example, the difference of the distances Z^(t) in the z direction can be more sensitively detected comparing to the other directions.

[0296] Thereby, one of the corresponding points between the images sensed at the image sensing points (A₀, A₁, . . . , A_(n)) is determined.

[0297] Upon combining the distance information, an interpolation process is performed next.

[0298] The interpolation process in the second embodiment is a griding process, i.e., an interpolation process with respect to a pair of corresponding points in images obtained at different image sensing points (viewpoints). Examples of grids (expressed by dashed lines) in the z direction are shown in FIG. 29 as an example.

[0299] In FIG. 29, ∘ and  are a pair of extracted corresponding data, and □ is corresponding data obtained after interpolating between  data and the ∘ data on the grid by performing a linear interpolation or a sprain interpolation, for example.

[0300] Upon combining the distance information, reliability check is performed.

[0301] The reliability check is for checking reliability of coordinates of corresponding points on the basis of information on the depth of focus sent from the image sensing systems. This operation is for removing corresponding point information of low reliability by using the information on the depth of focus of the image sensing systems, as well as for selecting pixels on the basis of the occlusion information.

[0302] Upon combining the distance information, mapping to the integrated coordinate systems is performed at last.

[0303] A method of mapping distance information Z^(t) to the integrated coordinate systems is shown in FIGS. 30A and 30B.

[0304] In FIGS. 30A and 30B, reference numeral 1002 denotes an object, and 1003 denotes a pad. The pad 1003 corresponds to a background stage to be serve as a background image.

[0305] Reference numerals 1800 to 1804 denote virtual projection planes of optical systems of the image sensing head 1001, and the distance information projected on the projection planes is registered in the second embodiment. Further, reference numerals 1810 to 1814 denotes central axes (optical axes) of the projection planes 1800 to 1804, respectively.

[0306] The integrated coordinate systems are five coordinate systems (e.g., xyz coordinate systems) forming the aforesaid five virtual projection planes.

[0307] First, the distance information Z^(t) _(ij) obtained as above is projected on each of the projection planes (five planes). In the projection process, conversion, such as the rotation and shifts, is performed on the distance information Z^(t) _(ij) along each reference coordinates. As an example, the projection process to the projection plane 1803 is shown in FIG. 30B. The same process as shown in FIG. 30B is performed for the projection planes other than the projection plane 1803. Further, the same projection process is performed on the next distance information Z^(t+δt) _(ij). Then, the distance information is overwritten on each projection plane in time sequence.

[0308] As described above, distance information of an object along five base axes can be obtained. More concretely, one point may be expressed by five points, (x₀, y₀, z₀), (x₁, y₁, z₁), (x₂, y₁, z₂), (x₃, y₃, z₃) and (x₄, y₄, z₄).

[0309] A three-dimensional image is generated as described above.

[0310] Correction of Image Sensing Parameters

[0311] Image sensing parameters needs to be corrected in response to a posture of the image sensing head 1001 with respect to the background stage 1003. Correction of the parameters is performed by the system controller 1210 with help of the image processor 1220 or the posture detector 1004.

[0312] In the second embodiment, there are two modes: one mode is for correcting the image sensing parameters based on information from the posture detector 1004; and the other mode is for performing the correction based on image information from the image processor 1220.

[0313] First, a method of correcting the image sensing parameters on the basis of the image information from the image processor 1220 will be explained with reference to FIG. 31.

[0314] In the second embodiment, a pad is used as a background stage 1003. Assume that the pad 1003 is in an XYZ coordinate system, and a point on the pad 1003 is expressed with (U, V, W) in the XYZ coordinate system. If the point of the pad 1003 rotates by an angle θ_(A) about the X axis, by an angle θ_(B) about the Y axis, and by an angle θ_(C) about the Z axis, further slides by (U, V, W) with respect to coordinate systems of each of the image sensing systems, then an arbitrary point on the pad 1003, (X, Y, Z), in the coordinate system of the left image sensing system, (X_(L), Y_(L), Z_(L)), is, $\begin{matrix} {\begin{pmatrix} X_{L} \\ Y_{L} \\ Z_{L} \end{pmatrix} = {{A_{L} \cdot B_{L} \cdot C_{L} \cdot \begin{pmatrix} X \\ Y \\ Z \end{pmatrix}} - \begin{pmatrix} U_{L} \\ V_{L} \\ W_{L} \end{pmatrix}}} & (17) \end{matrix}$

[0315] Further, the arbitrary point on the pad 1003, (X, Y, Z), in the coordinate system of the right image sensing system, (X_(R), Y_(R), Z_(R)), is, $\begin{matrix} {\begin{pmatrix} X_{R} \\ Y_{R} \\ Z_{R} \end{pmatrix} = {{A_{R} \cdot B_{R} \cdot C_{R} \cdot \begin{pmatrix} X \\ Y \\ Z \end{pmatrix}} - \begin{pmatrix} U_{R} \\ V_{R} \\ W_{R} \end{pmatrix}}} & (18) \end{matrix}$

[0316] Note, the A_(L), B_(L), C_(L) in the equation (17) are matrices which represent affine transformation, and they are defined by the following matrices. $\begin{matrix} {{A_{L} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & {\cos \quad \theta_{A}} & {\sin \quad \theta_{A}} \\ 0 & {{- \sin}\quad \theta_{A}} & {\cos \quad \theta_{A}} \end{pmatrix}}{B_{L} = \begin{pmatrix} {\cos \quad \theta_{B}} & 0 & {{- \sin}\quad \theta_{B}} \\ 0 & 1 & 0 \\ {\sin \quad \theta_{B}} & 0 & {\cos \quad \theta_{B}} \end{pmatrix}}{C_{L} = \begin{pmatrix} {\cos \quad \theta_{C}} & {\sin \quad \theta_{C}} & 0 \\ {{- \sin}\quad \theta_{C}} & {\cos \quad \theta_{C}} & 0 \\ 0 & 0 & 1 \end{pmatrix}}} & (19) \end{matrix}$

[0317] The matrices, A_(R), B_(R), C_(R), in the equation (18) are also defined by the same matrices (19).

[0318] For example, in a case where the image sensing head 1001 is at a distance B from the pad 1003 along the X axis (with no rotation), A=B=C=1. Therefore, the following equation can be obtained from equations (17) and (18), $\begin{matrix} {{\begin{pmatrix} X_{L} \\ Y_{L} \\ Z_{L} \end{pmatrix} - \begin{pmatrix} X_{R} \\ Y_{R} \\ Z_{R} \end{pmatrix}} = \begin{pmatrix} B \\ 0 \\ 0 \end{pmatrix}} & (20) \end{matrix}$

[0319] Accordingly, in a case where the pad 1003 rotates with respects to the image sensing systems, $\begin{matrix} {{{\left( {{A_{L} \cdot B_{L} \cdot C_{L}} - {A_{R} \cdot B_{R} \cdot C_{R}}} \right) \cdot \begin{pmatrix} X_{L} \\ Y_{L} \\ Z_{L} \end{pmatrix}} - \begin{pmatrix} X_{R} \\ Y_{R} \\ Z_{R} \end{pmatrix}} = \begin{pmatrix} B \\ 0 \\ 0 \end{pmatrix}} & (21) \end{matrix}$

[0320] is obtained.

[0321] Now, assume that coordinates of corresponding points of an arbitrary point P₀(x, y, z) of the object in the right and left image sensing systems have been extracted by the characteristic point extraction process and the corresponding point in an image sensed with the left image sensing system is expressed by p_(λ)(x_(λ), y_(λ)) and the corresponding point in an image sensed with the right image sensing system is expressed by p_(r)(x_(r), y_(r)). Then, the position of the corresponding points, (u, v), in a coordinate system of the CCD of the image sensing head 1001 is,

(u, v)=(x _(|) , y _(|))−(x _(r) , y _(r))  . . . (22)

[0322] where, $\begin{matrix} {\left( {x_{l},y_{l}} \right) = {f \cdot \left( {\frac{X_{L}}{Y_{L}},\frac{Y_{L}}{Z_{L}}} \right)}} & (23) \\ {\left( {x_{r},y_{r}} \right) = {f \cdot \left( {\frac{X_{R}}{Y_{R}},\frac{Y_{R}}{Z_{R}}} \right)}} & (24) \end{matrix}$

[0323] thus, $\begin{matrix} {\left( {u,v} \right) = {{f \cdot \left( {\frac{X_{L}}{Y_{L}},\frac{Y_{L}}{Z_{L}}} \right)} - {f \cdot \left( {\frac{X_{R}}{Y_{R}},\frac{Y_{R}}{Z_{R}}} \right)}}} & (25) \end{matrix}$

[0324] For example, if there is no convergence angle between multiple image sensing systems (1100R and 1100L), then,

[0325] A_(L)=B_(L)=C_(L)=E (identity matrix)

[0326] A_(R)=B_(R)=C_(R)=E (identity matrix)

[0327] U=B, V=W=0,

[0328] and the equation (20) holds, therefore, $\begin{matrix} {\left( {u,v} \right) = {\left( \frac{f}{Z_{L}} \right) \cdot \left( {B,0} \right)}} & (26) \end{matrix}$

[0329] Thus, the coordinates of the arbitrary point on the pad 1003 in the Z direction becomes, $\begin{matrix} {Z_{L} = {Z_{R} = {f \cdot \left( \frac{B}{u} \right)}}} & (27) \end{matrix}$

[0330] With the equations as described above, the relationship between the pad and the image sensing systems are defined.

[0331] The aforesaid is just a brief explanation of correcting image sensing parameters, however, the generality of the method is fully explained. Further, the details of this method is explained in the Japanese Patent Application Laid-Open No. 6-195446 by the same applicant of the present invention.

[0332] Further, in a case where correcting the image sensing parameters on the basis of outputs from sensors is applied, it is preferred to use the average of the outputs from the image processing units and the outputs from the sensors.

[0333] As other choice of the method, it may be possible to shorten processing time required for image processing by using the outputs from the sensors as initial values.

[0334] Editing a Three-dimensional Image

[0335] Next, a combining process of stereoscopic information, image texture and a document file, and an output process will be explained.

[0336]FIG. 33 shows a processing sequence of combining the stereoscopic information which is obtained as described above, the image texture, and the document file. Each process shown in FIG. 33 is performed by the image processor 1220.

[0337] The extracted distance information (Z^(t)) is obtained through image sensing operations with a camera, thus, it often represents a shape different from a real object. Or, there are cases in which the distance information is not preferred because it represents the same shape as the real object. Referring to FIG. 33, a fitting processor 1160 corrects the extracted distance information (Z^(t)) 1600 by using a distance template 1162 in response to a user operation.

[0338] A paste unit 1161 pastes image texture 1602 to distance information which is corrected by the fitting process.

[0339] A file combining processor 1163 integrates the corrected distance information 1601, the image texture 1602 and a document file 1603 to generate a single file. The document file 1603 is a document text inputted from the operation unit 1101. The combined file is outputted as a two- or three-dimensional image.

[0340] First, a fitting process is explained.

[0341] A flow of the fitting process is shown in FIG. 34. In FIG. 34, reference numeral 2501 denotes an image represented by the extracted distance information; 2500, a model image to be a template; and 2502 and 2503, differences between the extracted image 2501 and the model image 2500.

[0342] The fitting processor 1160 first displays the aforesaid two images (2500 and 2501) on the monitor 1008 as shown in FIG. 34 and prompts a user to perform a fitting operation. If a user designates to perform the fitting process with the model image 2500, then the fitting processor 1160 calculates the difference 2502 between the two images, then corrects an image based on the differences 2502 into an image of the uniform differences 2503. Further, the image 2501 is corrected on the basis of the image of the difference 2503 into an image 2504. Note, the correction can be performed by using an input pen.

[0343] As described above, a process of pasting the texture image 1602 to the corrected distance information 1601 obtained by performing the fitting process is the same as a method which is used in a field of computer graphics, and the like.

[0344] Thereafter, the pasted image is further combined with the document file to generate a file for a presentation, for example.

[0345]FIG. 35 shows a method of combining an image and a document by the file combining processor 1163. In this method, information on an area in a document 1901 where an image is to be imbedded is stored in an image coordinate information field. In an example shown in FIG. 35, the image file 1902 is pasted at a coordinate position stored in a field 19008, and an image file 1903 is pasted at a coordinate position stored in a field 19009.

[0346] Fields 19001 and 19002 in the document file 1901 contain link information and respectively indicate connection relationship between the document file 1901 and each of the image files 1902 and 1903. Further, fields 19003, 19005 and 19007 are for document data. Fields 19004 and 19006 are for image insertion flags which indicate where images are to be inputted, and indicate to refer to link information, in the fields 19001 and 19002, showing links to the image files.

[0347] The document file is made with link information, image insertion flag and document data. The image file is embedded in the position of the image embedding flag. Since the image file includes image coordinate information, an image is converted into an image seen from an arbitrary viewpoint on the basis of the image coordinate information and embedded in practice. In other words, the image coordinate information is information showing conversion relationship with respect to an originally obtained image. The image file thus generated is finally used.

[0348] <First Modification of the Second Embodiment>

[0349] Next, a modification of the second embodiment will be explained.

[0350]FIG. 36 is a brief overall view of an image processing system according to a first modification of the second embodiment. In the first modification, the three-dimensional shape extraction apparatus of the three-dimensional image editing system of the second embodiment is changed, and this modification corresponds to the first modification of the first embodiment.

[0351] In FIG. 36, an object 2101 is illuminated by the illumination unit 1200, and the three-dimensional shape information is extracted by a three-dimensional shape extraction apparatus 2100.

[0352] Further, reference numeral 2102 denotes a calibration pad and the three-dimensional shape extraction apparatus 2100 detects the posture of itself on the basis of an image of the pad 2102.

[0353] Note, characters, A, B, C and D written on the pad 2102 are markers used for detection of the posture. The posture is calculated from the direction and distortion of these markers.

[0354]FIG. 37 is a block diagram illustrating a configuration of the three-dimensional shape extraction apparatus 2100 according to the first modification of the second embodiment. In FIG. 37, the units and elements which have the same reference numerals as those in FIGS. 17A, 17B have the same function and operation, thus explanation of them is omitted.

[0355] A posture detector 3004 is for detecting the posture of the three-dimensional shape extraction apparatus 2100 on the basis of the direction, distortion, and so on, of the markers written on the pad 2102. Reference numeral 3220 denotes an image processor which extracts three-dimensional shape information of the object from image signals and posture information from the posture detector 3004. Reference numeral 3210 denotes a system controller which controls the overall operation of the three-dimensional shape extraction apparatus 2100.

[0356] Operation of the three-dimensional shape extraction apparatus according to the first modification of the second embodiment will be explained next. FIG. 38 is a flowchart showing a processing sequence by the three-dimensional shape extraction apparatus 2100 according to the first modification of the second embodiment. The first modification differs from the second embodiment in a method of adjusting the zoom ratio. The apparatus of the first modification performs posture detection in accordance with characteristic points (i.e., markers) of the pad 2102, thus an image of pad 2102 is necessarily sensed in an appropriate area of the field of view of the image sensing system in an image sensing operation.

[0357] Therefore, an image separator 3105 performs correlation operation or a template matching process between characteristic information (inputted in advance) of the markers (letters, A, B, C and D) on the pad 2102 and image signals which are currently being inputted, and detects the positions of the markers. Thereafter, a result of the detection is outputted to the system controller 3210. The system controller 3210 sets the focal length of the image sensing system on the basis of the detected positions of the markers so that the pad 2102 is sensed in an appropriate range of the field of view of the image sensing system. At the same time, information on the focal length which makes the field of view of the image sensing system to includes the entire pad 2102 is stored in a memory (not shown) in the system controller 3210. Thereby, it is possible to always sense the entire pad in the field of view of the image sensing system, as well as to detect the posture of the three-dimensional shape extraction apparatus 2100 on the basis of distortion of the image of the markers.

[0358] As shown in FIG. 38, when parameters for the image sensing system are set, then an LED of the EVF 1240 is turned on to notify a user that the apparatus 2100 is ready for input.

[0359] In turn of this notification, the user starts inputting, and presses the release button 1230 at a predetermined interval while moving the apparatus 2100, thus inputs images. At this time, the system controller 3210 sets the focal length so that the markers on the pad 2102 with the object are always within an appropriate range of the field of view of the image sensing system on the basis of information from the image separator 3105. Furthermore, information on the image sensing parameters, including the focal length at each image sensing point, is stored in the memory 1910. Accordingly, the posture detector 3004 detects the posture of the apparatus 2100 from the states of the markers.

[0360] The image processor 3220 reads out a plurality of image signals stored in the image memories 1073 and 1075, then converts the image into an image of a single focal length on the basis of the information on the image sensing parameters stored in the memory in the system controller 3210. Further, the image processor 3220 extracts three-dimensional shape information of the object from the corrected image signals and the posture signal obtained by the posture detector 3004, then outputs the information to the recorder 1250. The recorder 1250 converts the inputted signals into signals of a proper format, then records them on a recording medium.

[0361] <Second Modification of the Second Embodiment>

[0362]FIG. 39 is a block diagram illustrating a configuration of a three-dimensional shape extraction apparatus according to the second modification of the second embodiment. The second modification of the second embodiment corresponds to the second modification of the first embodiment. This second modification is characterized in that images can be re-sensed by using a popularity of pads similarly to the ones used in the first modification.

[0363] Referring to FIG. 39, information on the plurality of pads is stored in a memory 4400. The I/F 1760 to an external device connects to a computer, or the like, for receiving information. The kinds of pads can be selected through the I/F 1760.

[0364] The recorder 1250 stores three-dimensional shape information along with the image sensing parameters. It also has a function of reading out stored information when necessary. Reference numeral 4210 denotes a system controller which controls the overall operation of the entire apparatus of the second modification.

[0365] A matching processor 4401 specifies an image to be re-sensed out of the images stored in the recorder 1250. Therefore, the matching processor 4401 searches the same image as the one which is currently sensed, from the images stored in the recorder 1250 by using a matching method.

[0366] Next, an operation of the three-dimensional shape extraction apparatus of the second modification of the second embodiment will be explained. The flow of the operation according to the second modification is shown in FIG. 38.

[0367] In the apparatus according to the second modification, a user selects a kind of pad to be used when starting inputting. The system controller 4210 reads out information indicating characteristics of the selected pad from the memory for pads 4400 in accordance with the information on designation to select a pad.

[0368] Then, as shown in the flowchart in FIG. 38, the similar processes as in the first modification are performed to start inputting images of an object, then its three-dimensional shape information is extracted. Here, if the user wants to re-sense an image, then selects a re-sensing mode through the I/F 1760.

[0369] Then, the controller 4210 sequentially reads out images which have been recorded by the recorder 1250, and controls the matching processor 4410 to perform a matching process between the read-out images and an image which is currently being sensed.

[0370] When the correspondence is found between the image which is currently being sensed and the read-out image in the matching process, an LED of the EVF 1240 is turned on to notify the user that the apparatus is ready for input.

[0371] Note, upon re-sensing an image, it is possible to change the position of the object 2101 on the pad 2102. In such a case, the matching process is also performed between the image which have been recorded and an image which is currently being sensed, then the matching image which was sensed before is replaced with the image which is currently being sensed.

[0372] Further, in a case of terminating the input operation and starting over from the beginning of the input operation, the recorder 1250 reads out the three-dimensional shape information and image signals as well as image sensing parameters which have been recorded, then the input operation is started by setting the image sensing parameters to the same ones used in the previous image sensing operation.

[0373] Further, if the user wants to use a pad 2120 which is not registered in the memory 4400 in advance, then information of the pad 2120 is set from a computer, or the like, through the I/F 1760.

[0374] <Third Modification of the Second Embodiment>

[0375] It is possible to operate in the three-dimensional image sensing mode in addition to the three-dimensional shape information extraction mode by using the image sensing systems explained in the second embodiment. In other words, it is possible to provide images to be seen as three-dimensional images by using a plurality of image sensing systems.

[0376] It is possible to select either the three-dimensional image sensing mode or the three-dimensional shape information extraction mode by using the external input I/F 1760.

[0377] An operation of the image sensing apparatus in the three-dimensional image sensing mode is described next.

[0378] In a case where the three-dimensional image sensing mode is selected through the I/F 1760, images sensed by the right and left image sensing systems are outputted.

[0379] Further, since an overlapping portion in the right and left images can be obtained by calculating correlation between the images stored in the memories 1073R and 1073L, non-overlapping portions are shown in a low luminance level in the EVF 1240 as shown in FIG. 41 so that the overlapping portion corresponding to the image sensed by the right image sensing system can be distinguished. In FIG. 41, when an object on a table is to be sensed, both right and left end portions of the image on the EVF 1240 are expressed in a low luminance level. Since a ball is in the left end portion of the image which is expressed in the low luminance level, a user can easily recognize that it can not be seen as a three-dimensional image.

[0380] In contrast, the user can easily know that a tree and a plate in the central portion of the image can be displayed as an three-dimensional image. Thus, the portion which can be displayed as an three-dimensional image is seen clearly. Then, as the user presses the release button 1230, the right and left images are compressed in accordance with JPEG, and recorded by the recorder 1250.

[0381] <Fourth Modification of the Second Embodiment>

[0382] It may be considered to make the EVF 1240 as an optical system in order to provide the image sensing apparatus at low price. With an optical finder, it is impossible to display an image which has been sensed previously on it.

[0383] Furthermore, since an image sensing area and an observation area of an optical finder do not match if not the optical finder is a TTL finder, there is a possibility to fail in an image sensing operation, because the user may not notice an overlapping area even though there is the one.

[0384] The fourth modification is for providing a variety of functions described in this specification at low cost. More concretely, an LED is provided within or vicinity of the field of view of an optical finder, and the LED is tuned on and off in accordance with output from a correlation detector. For example, in a case where there is an overlapping area, the LED is turned on, whereas there is not, the LED is turned off. Thereby, the image sensing apparatus can be provided at low price.

[0385] Further, a plurality of LEDs may be provided both in the X and Y directions, and the LEDs in the overlapping portion are turned on. In this manner, not only the existence of any overlapping portion but also ratio of the overlapping portion to the display area can be recognized, thus easier to notice.

[0386] Furthermore, by making a frame of the field of view of the optical finder with liquid crystal, an overlapping portion can be notified more precisely than using the LEDs.

[0387] <Fifth Modification of the Second Embodiment>

[0388] A scheme of extracting three-dimensional shape information and a basic structure of the apparatus are the same as those shown in FIG. 15.

[0389] However, the image sensing systems do not have a function to input three-dimensional shape information, and the inputting operation may be performed by executing an image input program installed in a computer, for example. Upon executing the input program, a user places an object to be measured on a pad.

[0390] Then, in response to a command inputted by the user to execute the image input program installed in the computer from an input device, a window (referred as “finder window”, hereinafter) which corresponds to a finder of a camera is generated on a display device of the computer. Then, when the user turns on the switch of the camera, an image sensed by the camera is displayed in the finder window.

[0391] The user performs framing while watching the displayed image so that the image of the object is displayed in about the center, then presses the shutter. Thereafter, the image of the object is scanned to obtain image data of the object. The image data is processed by a processing apparatus which is exclusively for a camera, and by other processing apparatus, thereby three-dimensional data of the object is obtained.

[0392] The present invention can be applied to a system constituted by a plurality of devices, or to an apparatus comprising a single device. Furthermore, the invention is applicable also to a case where the object of the invention is attained by supplying a program to a system or apparatus.

[0393] The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore to appraise the public of the scope of the present invention, the following claims are made. 

What is claimed is:
 1. An image sensing apparatus for sensing a subject whose three-dimensional image is to be generated, comprising: at least two image sensing means, each having an optical system for sensing the main subject; and adjustment means for adjusting an image sensing condition parameter for each optical system of said at least two image sensing means on the basis of images of the subject sensed by said at least two image sensing means so that images of said subject project within image sensing areas of said at least two image sensing means, and that the images fall within the focus depths of the optical systems of said at least two image sensing means.
 2. The apparatus according to claim 1, wherein each optical system of said at least two image sensing means has a zoom lens, and said adjustment means includes focal length setting means for setting focal lengths of the zoom lenses of said at least two image sensing means for which image sensing condition parameter is subject to adjustment by said adjustment means, to a first position which is between a second position on a surface of the subject which is closest to the image sensing means and a third position on a surface of the subject which is farthest from the image sensing means, whereby images of the subject fall within the focal depths of the zoom lenses.
 3. The apparatus according to claim 2, wherein each optical system of said at least two image sensing means further comprises an iris diaphragm, and said adjustment means further comprises: calculation means for calculating focal depths of the zoom lenses of said at least two image sensing means for which image sensing condition parameter is subject to adjustment by said adjustment means when the focal lengths of the zoom lenses are set to the first position, and iris diaphragm control means for controlling the iris diaphragms so that a range of the focal depths is substantially between the second position and the third position.
 4. The apparatus according to claim 1, wherein the first position is at or near the middle point between the first position and the second position.
 5. The apparatus according to claim 1, wherein said adjustment means includes means for selecting an image sensing condition parameter determined for either one of the optical systems of said at least two image sensing means, when the image sensing condition parameters determined for said at least two image sensing means are different from each other.
 6. The apparatus according to claim 1, wherein image sensing condition parameters include a diameter of an aperture diaphragm and a focal length of the optical system of said at least two image sensing means.
 7. The apparatus according to claim 1, wherein said adjustment means includes means for changing the focal depths of the optical systems of said at least two image sensing means so that the subject falls within the focal depths of the optical systems of said at least two image sensing means.
 8. The apparatus according to claim 1, wherein said adjustment means includes means for controlling angles of view of the optical systems of said at least two image sensing means so that the subject is in both the image sensing areas of said at least two image sensing means.
 9. The apparatus according to claim 1, wherein said adjustment means includes: depth-of-focus changing means for changing focal depths of the optical systems of said at least two image sensing means so that the subject falls within the focal depths of the optical systems of said at least two image sensing means; angle-of-view control means for controlling angles of view of the optical systems of said at least two image sensing means so that the subject is in both the image sensing areas of said at least two image sensing means after said depth-of-focus changing means has changed the depths of focus; and means for reinitiating said depth-of-focus changing means and said angle-of-view control means in a case where a focal length set by said depth-of-focus changing means is changed by said angle-of-view control means.
 10. The apparatus according to claim 1, further comprising position detection means for detecting the position of each of said the at least two image sensing means in synchronization with a user pressing a shutter, wherein said at least two image sensing means moves together.
 11. The apparatus according to claim 10, further comprising means for notifying the user of a timing to press the shutter on the basis of detection by said position detection means.
 12. The apparatus according to claim 10, wherein the apparatus notifies the user whether or not a moving speed of said at least image sensing means, which is determined on the basis of detection by said position detection means.
 13. The apparatus according to claim 1, further comprising storage means for storing the image sensing condition parameters determined by said adjustment means.
 14. The apparatus according to claim 13, further comprising detection means for detecting a posture of each of said at least image sensing means, wherein posture information detected by said detection means is stored as an image sensing parameter in said storage means.
 15. An image sensing apparatus for sensing a subject whose three-dimensional image is to be generated from a plurality of images taken at a plurality of image sensing points, comprising: image sensing means having an optical system for sensing the subject; moving means for sequentially moving said image sensing means to at least two image sensing points; and adjustment means for adjusting an image sensing condition parameter for said image sensing means on the basis of a plurality of images of the subject sensed by said image sensing means at said at least two image sensing points so that an image of said subject falls within image sensing areas of said image sensing means of at said at least two image sensing points, and that the plurality of images of the subject fall within focal depths of said image sensing means at said at least two image sensing points.
 16. The apparatus according to claim 15, wherein said adjustment means includes: search means for searching a plurality of image portions, each of which has a predetermined pattern, within the plurality of images sensed at said at least two image sensing points; and determination means for determining whether or not the plurality of searched image portions are within the image sensing area of said image sensing means, whereby said adjustment means checks that images of the subject fall within the image sensing areas of said image sensing means at said at least two image sensing points.
 17. The apparatus according to claim 16, further comprising means for subjecting an image to focal length correction process by changing the image sensing parameters on the basis of the plurality of sensed images.
 18. The apparatus according to claim 16, wherein said determination means controls a focal length so that the searched patterns fall within a field of view of said image sensing means.
 19. The apparatus according to claim 15, wherein said adjustment means comprises: means for storing plural kinds of predetermined patterns; and means for selecting a pattern out of the plural kinds of patterns.
 20. The apparatus according to claim 15, further comprising means for initiating to sense an image of the subject by said image sensing means.
 21. An image sensing apparatus which senses images of a first subject whose three-dimensional image is to be extracted, comprising: image sensing means having a zoom lens, said image sensing means being movable; and adjustment means for adjusting image sensing parameters when said image sensing means senses images of the first subject and a second subject which is known as the image sensing means moves, so that the first subject and specific part of the second subject fall within a field of view of said image sensing means.
 22. An image processing apparatus which senses a subject with one or more image sensing means at a plurality of image sensing points and outputs three-dimensional shape information and image data information on the subject, said apparatus comprising: conversion means for converting the image data information outputted by the image sensing means into an image which is from a desired viewpoint and which is of a predetermined type, and storing the image as a file, the conversion being made on the basis of the three-dimensional shape information.
 23. The apparatus according to claim 22, wherein each of one or more image sensing means comprises: an optical system for sensing an image; adjustment means for adjusting an image sensing condition parameter for said optical system so that an image of the subject falls within an image sensing area and a focal depth of said optical system at the plurality of image sensing points; and a monitor for displaying an image sensed in the image sensing area of each of said plurality of image sensing means.
 24. The apparatus according to claim 22, wherein said conversion means converts three-dimensional image data, obtained by sensing the subject at the plurality of image sensing points, into two-dimensional image data.
 25. An image processing apparatus which senses a subject with image sensing means at a plurality of image sensing points and outputs three-dimensional shape information and image data information on the subject, said apparatus comprising: position detection means for detecting positions of said image sensing means over the plurality of image sensing points; operation means for operating the three-dimensional shape information, on the basis of image data representing images obtained with said image sensing means and position data representing positions of said image sensing means at which the images have been sensed by said position detection means; conversion means for converting the images of the subject sensed at the plurality of image sensing points into image data information representing an image of the subject seen from an arbitrary viewpoint, on the basis of the three-dimensional shape information on the subject operated by said operation means; and combining means combining image data converted by said conversion me with data of other file.
 26. The apparatus according to claim 25, wherein said image sensing means comprises: an optical system for image sensing; adjustment means for adjusting image sensing condition parameters for said optical system so that an image of the subject falls within an image sensing area and within the focal depths of said optical system at the plurality of image sensing points; and a monitor for displaying an image sensing area said image sensing means.
 27. The apparatus according to claim 25, wherein said conversion means converts three-dimensional image data, obtained by sensing the subject from the plurality of image sensing points, into two-dimensional image data.
 28. The apparatus according to claim 25, wherein the other file is a document file.
 29. The apparatus according to claim 25, wherein said position detection means stores information on background of the subject.
 30. An image processing apparatus which senses a subject with image sensing means from a plurality of image sensing points and outputs three-dimensional shape information and image data information on the subject, said apparatus comprising: position detection means for detecting positions of said image sensing means over the plurality of image sensing points; operation means for operating the three-dimensional shape information on the basis of a plurality of images obtained at the plurality of image sensing points and the positions, corresponding to each of the sensed images, which are obtained by said position detection means, of said image sensing means; conversion means for converting the images of the subject sensed from the plurality of image sensing points into an image of the subject seen from an arbitrary viewpoint on the basis of the three-dimensional shape information on the subject operated by said operation means; combining means for combining a file of the converted image and other file; and display means for displaying an image outputted from said combining means in a stereoscopic manner.
 31. An image processing apparatus which senses a subject with image sensing means from a plurality of image sensing points and outputs three-dimensional shape information and image data information on the subject, said apparatus comprising: a finder; position detection means for detecting change in the position of said image sensing means over the plurality of image sensing points; operation means for operating the three-dimensional shape information on the basis of a plurality of images obtained from the plurality of image sensing points and the positions, corresponding to each of the sensed images, which are obtained by said position detection means, of said image sensing means; conversion means for converting the images of the subject sensed from the plurality of image sensing points into an image of the subject seen from an arbitrary viewpoint on the basis of the three-dimensional shape information on the subject operated by said operation means; and combining means for combining a file of the converted image and other file.
 32. An image processing apparatus which senses a subject with image sensing means from a plurality of image sensing points and outputs three-dimensional shape information and image data information on the subject, said apparatus comprising: position detection means for detecting change in the position of said image sensing means over the plurality of image sensing points; operation means for operating the three-dimensional shape information, on the basis of image data representing images obtained with said image sensing means and position data representing positions of said image sensing means at which the images have been sensed by said position detection means; conversion mean for converting the images of the subject sensed at the plurality of image sensing points into an image of the subject seen from an arbitrary viewpoint, on the basis of the three-dimensional shape information operated by said operation means; and combining means for combining a file of the converted image with other file.
 33. An image sensing apparatus which senses a subject with image sensing means at a plurality of image sensing points, comprising: storage means for storing two images of the subject sensed at arbitrary to image sensing points; overlap detection means for detecting an overlapping area in the two images; and a view finder for displaying the overlapping area in the two images in a manner different from that for displaying other area.
 34. The apparatus according to claim 33, wherein said image sensing means has two optical systems, and the overlapping area is in the two images simultaneously sensed with the two optical systems.
 35. The apparatus according to claim 33, wherein said image sensing means senses images of the subject at two image sensing points, and said overlap detection means detects an overlapping area in the images sensed at two image sensing points.
 36. The image sensing apparatus which senses a subject with image sensing means at a plurality of image sensing points, comprising: storage means for storing a plurality of images of the subject sensed at the plurality of image sensing points; means for moving said image sensing means to an arbitrary image sensing point and sensing a first image of the subject; means for searching a second image which includes an image area overlapping the first image out of the plurality of images stored in said storage means; and means for replacing the second image with the first image. 